diff options
author | Nyx Linden <nyx@lindenlab.com> | 2013-03-06 17:21:21 -0500 |
---|---|---|
committer | Nyx Linden <nyx@lindenlab.com> | 2013-03-06 17:21:21 -0500 |
commit | 25255ee13efdc3e8090412f7fce6bb7723277053 (patch) | |
tree | f77c6eb77e3cbcfcf72d1b5998a1275fac002d4c /indra/llxml/llcontrol.cpp | |
parent | 2784a515b0e725f74bf0e5fab47153ba358b26d6 (diff) | |
parent | fe042430b03667abcd6b72ef9cc27d82d85f4242 (diff) |
merge
Diffstat (limited to 'indra/llxml/llcontrol.cpp')
-rw-r--r-- | indra/llxml/llcontrol.cpp | 6 |
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); } |