[Lldb-commits] [lldb] r155593 - in /lldb/trunk: include/lldb/Interpreter/Args.h source/Interpreter/Args.cpp

Greg Clayton gclayton at apple.com
Wed Apr 25 15:30:32 PDT 2012


Author: gclayton
Date: Wed Apr 25 17:30:32 2012
New Revision: 155593

URL: http://llvm.org/viewvc/llvm-project?rev=155593&view=rev
Log:
Patch from Viktor Kutuzov: changes the method declarations to const for the Args::GetCommandString and Agrs::GetQuotedCommandString methods. It allows using of these methods within the other const methods.


Modified:
    lldb/trunk/include/lldb/Interpreter/Args.h
    lldb/trunk/source/Interpreter/Args.cpp

Modified: lldb/trunk/include/lldb/Interpreter/Args.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Interpreter/Args.h?rev=155593&r1=155592&r2=155593&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Interpreter/Args.h (original)
+++ lldb/trunk/include/lldb/Interpreter/Args.h Wed Apr 25 17:30:32 2012
@@ -125,10 +125,10 @@
     SetCommandString (const char *command, size_t len);
 
     bool
-    GetCommandString (std::string &command);
+    GetCommandString (std::string &command) const;
 
     bool
-    GetQuotedCommandString (std::string &command);
+    GetQuotedCommandString (std::string &command) const;
 
     //------------------------------------------------------------------
     /// Gets the number of arguments left in this command object.

Modified: lldb/trunk/source/Interpreter/Args.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/Args.cpp?rev=155593&r1=155592&r2=155593&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/Args.cpp (original)
+++ lldb/trunk/source/Interpreter/Args.cpp Wed Apr 25 17:30:32 2012
@@ -114,7 +114,7 @@
 }
 
 bool
-Args::GetCommandString (std::string &command)
+Args::GetCommandString (std::string &command) const
 {
     command.clear();
     int argc = GetArgumentCount();
@@ -128,7 +128,7 @@
 }
 
 bool
-Args::GetQuotedCommandString (std::string &command)
+Args::GetQuotedCommandString (std::string &command) const
 {
     command.clear ();
     size_t argc = GetArgumentCount ();





More information about the lldb-commits mailing list