diff options
author | Kent Quirk <q@lindenlab.com> | 2009-12-01 20:59:08 -0500 |
---|---|---|
committer | Kent Quirk <q@lindenlab.com> | 2009-12-01 20:59:08 -0500 |
commit | f496c2b164a100836d74909c3e27adcdf98018f0 (patch) | |
tree | 25815a00164d3711e496e6bf751bdc947d0e41fd /indra/newview/llfloaterabout.cpp | |
parent | 2f0b1d164a939d73aae099c9a3a7eaf76f504eaa (diff) |
DEV-43622 : API change (no functionality change) to fix a design error in LLSD
I made it about a year and a half ago; Zero found it while reading code. I had added a return value to LLSD::insert(), but a) did it wrong, and b) broke the STL-like semantics of insert(). So I've put insert() back to returning void and created LLSD::with(), which does what my earlier insert() did. The compiler then caught all the cases where insert()'s return value were being used, and I changed those to use with() instead.
Diffstat (limited to 'indra/newview/llfloaterabout.cpp')
-rw-r--r-- | indra/newview/llfloaterabout.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llfloaterabout.cpp b/indra/newview/llfloaterabout.cpp index 58c0c19761..68fc69b4f7 100644 --- a/indra/newview/llfloaterabout.cpp +++ b/indra/newview/llfloaterabout.cpp @@ -312,7 +312,7 @@ public: add("getInfo", "Request an LLSD::Map containing information used to populate About box", &LLFloaterAboutListener::getInfo, - LLSD().insert("reply", LLSD())); + LLSD().with("reply", LLSD())); } private: |