summaryrefslogtreecommitdiffstats
path: root/lldb/tools/lldb-mi/MICmdArgValString.cpp
diff options
context:
space:
mode:
authorBruce Mitchener <bruce.mitchener@gmail.com>2015-07-04 05:16:58 +0000
committerBruce Mitchener <bruce.mitchener@gmail.com>2015-07-04 05:16:58 +0000
commit0b6ba7c668187b8cc3bc4fcf81929ccabf2882cb (patch)
tree28476af268bc738e80d246c051a5d3a461f0aa20 /lldb/tools/lldb-mi/MICmdArgValString.cpp
parent17eff10f6806bbf676fc0c4731c9940c61d90cc0 (diff)
downloadbcm5719-llvm-0b6ba7c668187b8cc3bc4fcf81929ccabf2882cb.tar.gz
bcm5719-llvm-0b6ba7c668187b8cc3bc4fcf81929ccabf2882cb.zip
Use string::find(char) for single character strings.
Summary: Use string::find(char) for single character strings. Reviewers: abidh, ki.stfu, clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D10943 llvm-svn: 241390
Diffstat (limited to 'lldb/tools/lldb-mi/MICmdArgValString.cpp')
-rw-r--r--lldb/tools/lldb-mi/MICmdArgValString.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/tools/lldb-mi/MICmdArgValString.cpp b/lldb/tools/lldb-mi/MICmdArgValString.cpp
index c8d32901a4e..1c3e5f84d3d 100644
--- a/lldb/tools/lldb-mi/MICmdArgValString.cpp
+++ b/lldb/tools/lldb-mi/MICmdArgValString.cpp
@@ -231,11 +231,11 @@ CMICmdArgValString::IsStringArgSingleText(const CMIUtilString &vrTxt) const
return false;
// Look for -f type short options, if found reject
- if ((0 == vrTxt.find("-")) && (vrTxt.length() == 2))
+ if ((0 == vrTxt.find('-')) && (vrTxt.length() == 2))
return false;
// Look for thread group i1 i2 i3...., if found reject
- if ((vrTxt.find("i") == 0) && ::isdigit(vrTxt[1]))
+ if ((vrTxt.find('i') == 0) && ::isdigit(vrTxt[1]))
return false;
// Look for numbers, if found reject
OpenPOWER on IntegriCloud