diff options
author | Jacek Antonelli | 2008-12-01 17:39:58 -0600 |
---|---|---|
committer | Jacek Antonelli | 2008-12-01 17:40:06 -0600 |
commit | 7abecb48babe6a6f09bf6692ba55076546cfced9 (patch) | |
tree | 8d18a88513fb97adf32c10aae78f4be1984942db /linden/indra/newview/llcommandlineparser.cpp | |
parent | Second Life viewer sources 1.21.6 (diff) | |
download | meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.zip meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.gz meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.bz2 meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.xz |
Second Life viewer sources 1.22.0-RC
Diffstat (limited to 'linden/indra/newview/llcommandlineparser.cpp')
-rw-r--r-- | linden/indra/newview/llcommandlineparser.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/linden/indra/newview/llcommandlineparser.cpp b/linden/indra/newview/llcommandlineparser.cpp index dc6a1e2..5dafe78 100644 --- a/linden/indra/newview/llcommandlineparser.cpp +++ b/linden/indra/newview/llcommandlineparser.cpp | |||
@@ -416,11 +416,6 @@ void setControlValueCB(const LLCommandLineParser::token_vector_t& value, | |||
416 | const std::string& opt_name, | 416 | const std::string& opt_name, |
417 | LLControlGroup* ctrlGroup) | 417 | LLControlGroup* ctrlGroup) |
418 | { | 418 | { |
419 | if(value.size() > 1) | ||
420 | { | ||
421 | llwarns << "Ignoring extra tokens mapped to the setting: " << opt_name << "." << llendl; | ||
422 | } | ||
423 | |||
424 | // *FIX: Do sematic conversion here. | 419 | // *FIX: Do sematic conversion here. |
425 | // LLSD (ImplString) Is no good for doing string to type conversion for... | 420 | // LLSD (ImplString) Is no good for doing string to type conversion for... |
426 | // booleans | 421 | // booleans |
@@ -457,7 +452,7 @@ void setControlValueCB(const LLCommandLineParser::token_vector_t& value, | |||
457 | default: | 452 | default: |
458 | { | 453 | { |
459 | // For the default types, let llsd do the conversion. | 454 | // For the default types, let llsd do the conversion. |
460 | if(value.size() > 1) | 455 | if(value.size() > 1 && ctrl->isType(TYPE_LLSD)) |
461 | { | 456 | { |
462 | // Assume its an array... | 457 | // Assume its an array... |
463 | LLSD llsdArray; | 458 | LLSD llsdArray; |
@@ -472,6 +467,11 @@ void setControlValueCB(const LLCommandLineParser::token_vector_t& value, | |||
472 | } | 467 | } |
473 | else if(value.size() > 0) | 468 | else if(value.size() > 0) |
474 | { | 469 | { |
470 | if(value.size() > 1) | ||
471 | { | ||
472 | llwarns << "Ignoring extra tokens mapped to the setting: " << opt_name << "." << llendl; | ||
473 | } | ||
474 | |||
475 | LLSD llsdValue; | 475 | LLSD llsdValue; |
476 | llsdValue.assign(LLSD::String(value[0])); | 476 | llsdValue.assign(LLSD::String(value[0])); |
477 | ctrl->setValue(llsdValue, false); | 477 | ctrl->setValue(llsdValue, false); |