diff options
author | Monroe Linden <monroe@lindenlab.com> | 2010-12-09 16:48:07 -0800 |
---|---|---|
committer | Monroe Linden <monroe@lindenlab.com> | 2010-12-09 16:48:07 -0800 |
commit | 95445fb1b56a60145933db0891133230c87274b8 (patch) | |
tree | f9b03971e89800c68b4c4430b13c90af6cba51e7 /indra/newview/llcommandlineparser.cpp | |
parent | 089665ce4eab97d0ab58e08914f852219ed3fae7 (diff) | |
parent | cf6147f7c092e6ca10697dea341099c5e281df00 (diff) |
Merge with viewer-development.
Diffstat (limited to 'indra/newview/llcommandlineparser.cpp')
-rw-r--r-- | indra/newview/llcommandlineparser.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llcommandlineparser.cpp b/indra/newview/llcommandlineparser.cpp index f31ff14df6..65c61c4a8b 100644 --- a/indra/newview/llcommandlineparser.cpp +++ b/indra/newview/llcommandlineparser.cpp @@ -345,7 +345,10 @@ bool LLCommandLineParser::parseCommandLine(int argc, char **argv) bool LLCommandLineParser::parseCommandLineString(const std::string& str) { // Split the string content into tokens - boost::escaped_list_separator<char> sep("\\", "\r\n ", "\"'"); + const char* escape_chars = "\\"; + const char* separator_chars = "\r\n "; + const char* quote_chars = "\"'"; + boost::escaped_list_separator<char> sep(escape_chars, separator_chars, quote_chars); boost::tokenizer< boost::escaped_list_separator<char> > tok(str, sep); std::vector<std::string> tokens; // std::copy(tok.begin(), tok.end(), std::back_inserter(tokens)); |