Go to file
Nat Goodspeed 7f6e7fc0cb CHOP-951, IQA-1477: Validate args for numeric command-line switches.
The logic in llcommandlineparser.cpp's setControlValueCB() callback function
for converting command-line switch argument values from string to the actual
type of the map-to settings variable had a couple special cases for boolean
and LLSD array. But for S32, U32 and F32, it simply used default LLSD
string-to-numeric conversion. LLSD's string-to-numeric conversion is a bit
lame: for non-numeric strings, it shrugs and returns 0.
Introduce onevalue() and badvalue() helper functions that, like certain errors
during command-line parsing, throw LLCLPError. Use them to streamline certain
redundancies in setControlValueCB(). Introduce convertTo<T>() helper function
that uses boost::lexical_cast() for slightly more stringent conversions. Add
cases for U32, S32 and F32 targets.
setControlValueCB() is actually called only by LLControlGroupCLP::notify(),
not during actual command-line parsing.
Make LLControlGroupCLP::notify() return bool. Make it catch LLCLPError, set
the error for getErrorMessage() and return false on that exception.
Package LLAppViewer::initConfiguration()'s response to initParseCommandLine()
returning false as a new handleCommandLineError() function; invoke it both
there and when LLControlGroupCLP::notify() returns false.
2013-08-05 19:43:06 -04:00
debian
…
doc NORSPEC-229 Fix for bad binormals on mirrored surfaces (use tangent calculator instead of binormal calculator, convert binormal centric code to tangent centric) 2013-06-03 12:50:48 -05:00
etc
…
indra CHOP-951, IQA-1477: Validate args for numeric command-line switches. 2013-08-05 19:43:06 -04:00
scripts merge up to latest viewer-development for merge to 3.5.2 2013-04-19 14:42:56 -04:00
.hgignore
…
.hgtags Automated merge with http://hg.secondlife.com/viewer-release 2013-07-22 22:24:32 -04:00
BuildParams added default sourceid and check that sourceid is not blank, hoping to get the windows builds to recognize the value 2013-07-24 14:38:23 -07:00
NORSPEC-207.patch BUG-2707 disable more login/update-sequence specific logging 2013-06-02 14:41:57 -07:00
autobuild.xml merge changes for maint-2718 2013-05-22 14:40:26 -04:00
build.sh CHOP-947: create summary.json (really python) metadata file for TeamCity results 2013-05-21 12:45:44 -04:00