summaryrefslogtreecommitdiff
path: root/indra/llxml/llcontrol.cpp
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2013-04-12 12:10:24 -0400
committerOz Linden <oz@lindenlab.com>2013-04-12 12:10:24 -0400
commitedf5b6a8b71d9c4c01ce9c975864d4525cd7350c (patch)
tree68310a6824451c8c6f3af8ef73f2f9ec17c3a467 /indra/llxml/llcontrol.cpp
parent01fb17cbc5a1d6a3526c4115787dbae74f7bdb07 (diff)
parent460c81070e5fa1c51ce7e186a9ecb8c5f1c995e1 (diff)
pull changes for Sunshine beta
Diffstat (limited to 'indra/llxml/llcontrol.cpp')
-rw-r--r--indra/llxml/llcontrol.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/indra/llxml/llcontrol.cpp b/indra/llxml/llcontrol.cpp
index 53d9380f4f..666c03e9ff 100644
--- a/indra/llxml/llcontrol.cpp
+++ b/indra/llxml/llcontrol.cpp
@@ -850,12 +850,10 @@ U32 LLControlGroup::loadFromFile(const std::string& filename, bool set_default_v
return 0;
}
- S32 ret = LLSDSerialize::fromXML(settings, infile);
-
- if (ret <= 0)
+ if (LLSDParser::PARSE_FAILURE == LLSDSerialize::fromXML(settings, infile))
{
infile.close();
- llwarns << "Unable to open LLSD control file " << filename << ". Trying Legacy Method." << llendl;
+ llwarns << "Unable to parse LLSD control file " << filename << ". Trying Legacy Method." << llendl;
return loadFromFileLegacy(filename, TRUE, TYPE_STRING);
}