aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra
diff options
context:
space:
mode:
authorArmin Weatherwax2011-06-16 14:31:08 +0200
committerArmin Weatherwax2011-11-13 14:28:27 +0100
commitf8864a146bd0e7a871f5ce27f92683df66729dab (patch)
tree3fc77b1c3d5ffe9b5bac2bf3ecb1f013a8f54c22 /linden/indra
parentfix pass LLSD& instead LLSD to selectByValue (diff)
downloadmeta-impy-f8864a146bd0e7a871f5ce27f92683df66729dab.zip
meta-impy-f8864a146bd0e7a871f5ce27f92683df66729dab.tar.gz
meta-impy-f8864a146bd0e7a871f5ce27f92683df66729dab.tar.bz2
meta-impy-f8864a146bd0e7a871f5ce27f92683df66729dab.tar.xz
2 fixes in llxmlnode: pass LLUUID& instead of LLUUID to setUUIDValue; remove superfluous NULL pointer check
Diffstat (limited to '')
-rw-r--r--linden/indra/llxml/llxmlnode.cpp5
-rw-r--r--linden/indra/llxml/llxmlnode.h2
2 files changed, 2 insertions, 5 deletions
diff --git a/linden/indra/llxml/llxmlnode.cpp b/linden/indra/llxml/llxmlnode.cpp
index 5bb5012..0e2f9a2 100644
--- a/linden/indra/llxml/llxmlnode.cpp
+++ b/linden/indra/llxml/llxmlnode.cpp
@@ -499,10 +499,7 @@ void XMLCALL StartXMLNode(void *userData,
499 pos += 2; 499 pos += 2;
500 } 500 }
501 501
502 if (parent) 502 parent->addChild(new_node);
503 {
504 parent->addChild(new_node);
505 }
506} 503}
507 504
508void XMLCALL EndXMLNode(void *userData, 505void XMLCALL EndXMLNode(void *userData,
diff --git a/linden/indra/llxml/llxmlnode.h b/linden/indra/llxml/llxmlnode.h
index ab1a772..d71a221 100644
--- a/linden/indra/llxml/llxmlnode.h
+++ b/linden/indra/llxml/llxmlnode.h
@@ -245,7 +245,7 @@ public:
245 void setFloatValue(const F32 value, Encoding encoding = ENCODING_DEFAULT, U32 precision = 0) { setFloatValue(1, &value, encoding); } 245 void setFloatValue(const F32 value, Encoding encoding = ENCODING_DEFAULT, U32 precision = 0) { setFloatValue(1, &value, encoding); }
246 void setDoubleValue(const F64 value, Encoding encoding = ENCODING_DEFAULT, U32 precision = 0) { setDoubleValue(1, &value, encoding); } 246 void setDoubleValue(const F64 value, Encoding encoding = ENCODING_DEFAULT, U32 precision = 0) { setDoubleValue(1, &value, encoding); }
247 void setStringValue(const std::string& value) { setStringValue(1, &value); } 247 void setStringValue(const std::string& value) { setStringValue(1, &value); }
248 void setUUIDValue(const LLUUID value) { setUUIDValue(1, &value); } 248 void setUUIDValue(const LLUUID& value) { setUUIDValue(1, &value); }
249 void setNodeRefValue(const LLXMLNode *value) { setNodeRefValue(1, &value); } 249 void setNodeRefValue(const LLXMLNode *value) { setNodeRefValue(1, &value); }
250 250
251 void setBoolValue(U32 length, const BOOL *array); 251 void setBoolValue(U32 length, const BOOL *array);