diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2012-01-23 17:04:18 -0500 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2012-01-23 17:04:18 -0500 |
commit | 199e875210435cbc914e80bf3eb6be6c985fce1c (patch) | |
tree | e1d6a3062d01b4b822bf48f03c9417a520a11a25 | |
parent | 507e136f9a25179992b2093e10ade1093cc71698 (diff) |
Use LLProcess::Params::args::empty() instead of comparing iterators.
-rw-r--r-- | indra/newview/llexternaleditor.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/indra/newview/llexternaleditor.cpp b/indra/newview/llexternaleditor.cpp index 561b87618c..db482f023e 100644 --- a/indra/newview/llexternaleditor.cpp +++ b/indra/newview/llexternaleditor.cpp @@ -81,10 +81,7 @@ LLExternalEditor::EErrorCode LLExternalEditor::setCommand(const std::string& env LLExternalEditor::EErrorCode LLExternalEditor::run(const std::string& file_path) { - // LLInitParams type wrappers don't seem to have empty() or size() - // methods; try determining emptiness by comparing begin/end iterators. - if (std::string(mProcessParams.executable).empty() || - (mProcessParams.args.begin() == mProcessParams.args.end())) + if (std::string(mProcessParams.executable).empty() || mProcessParams.args.empty()) { llwarns << "Editor command not set" << llendl; return EC_NOT_SPECIFIED; |