diff options
Diffstat (limited to 'tools/lldb-mi/MICmdArgValOptionLong.cpp')
-rw-r--r-- | tools/lldb-mi/MICmdArgValOptionLong.cpp | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/tools/lldb-mi/MICmdArgValOptionLong.cpp b/tools/lldb-mi/MICmdArgValOptionLong.cpp index 0c29982e26343..0eaf6e0d055fc 100644 --- a/tools/lldb-mi/MICmdArgValOptionLong.cpp +++ b/tools/lldb-mi/MICmdArgValOptionLong.cpp @@ -7,18 +7,6 @@ // //===----------------------------------------------------------------------===// -//++ -// File: MICmdArgValOptionLong.cpp -// -// Overview: CMICmdArgValOptionLong implementation. -// -// Environment: Compilers: Visual C++ 12. -// gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 -// Libraries: See MIReadmetxt. -// -// Copyright: None. -//-- - // In-house headers: #include "MICmdArgValOptionLong.h" #include "MICmdArgContext.h" @@ -120,7 +108,7 @@ bool CMICmdArgValOptionLong::Validate(CMICmdArgContext &vwArgContext) { if (vwArgContext.IsEmpty()) - return MIstatus::success; + return m_bMandatory ? MIstatus::failure : MIstatus::success; if (vwArgContext.GetNumberArgsPresent() == 1) { @@ -266,7 +254,7 @@ CMICmdArgValOptionLong::IsArgLongOption(const CMIUtilString &vrTxt) const if (bHavePosSlash || bHaveBckSlash) return false; - const MIint nPos = vrTxt.find_first_of("--"); + const size_t nPos = vrTxt.find_first_of("--"); if (nPos != 0) return false; |