diff options
author | Richard Linden <none@none> | 2012-10-22 22:46:45 -0700 |
---|---|---|
committer | Richard Linden <none@none> | 2012-10-22 22:46:45 -0700 |
commit | 50ad343366f5e18ced40e24e2a1cc2399411c7e5 (patch) | |
tree | 328285a0daf5c756934a04788729939d5a0e3c94 /indra/llcommon/llsdparam.cpp | |
parent | bfe85fb24b30a24e08b48fdb2c734da0143fe845 (diff) |
SH-3405 WIP convert existing stats to lltrace system
added return value to serialize function to track if any values were written
Diffstat (limited to 'indra/llcommon/llsdparam.cpp')
-rw-r--r-- | indra/llcommon/llsdparam.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/llcommon/llsdparam.cpp b/indra/llcommon/llsdparam.cpp index 4b8a8dba5c..e25a966609 100644 --- a/indra/llcommon/llsdparam.cpp +++ b/indra/llcommon/llsdparam.cpp @@ -329,7 +329,7 @@ namespace LLInitParam p.writeValue<LLSD::String>(sd.asString(), name_stack); } - void ParamValue<LLSD, TypeValues<LLSD>, false>::serializeBlock(Parser& p, Parser::name_stack_t& name_stack, const BaseBlock* diff_block) const + bool ParamValue<LLSD, TypeValues<LLSD>, false>::serializeBlock(Parser& p, Parser::name_stack_t& name_stack, const BaseBlock* diff_block) const { // attempt to write LLSD out directly if (!p.writeValue<LLSD>(mValue, name_stack)) @@ -337,5 +337,6 @@ namespace LLInitParam // otherwise read from LLSD value and serialize out to parser (which could be LLSD, XUI, etc) LLParamSDParserUtilities::readSDValues(boost::bind(&serializeElement, boost::ref(p), _1, _2), mValue, name_stack); } + return true; } } |