Patch from Viktor Kutuzov: changes the method declarations to const for the Args...
authorGreg Clayton <gclayton@apple.com>
Wed, 25 Apr 2012 22:30:32 +0000 (22:30 +0000)
committerGreg Clayton <gclayton@apple.com>
Wed, 25 Apr 2012 22:30:32 +0000 (22:30 +0000)
llvm-svn: 155593

lldb/include/lldb/Interpreter/Args.h
lldb/source/Interpreter/Args.cpp

index d5d0278..93d9ce1 100644 (file)
@@ -125,10 +125,10 @@ public:
     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.
index 99dddda..a6eb1f0 100644 (file)
@@ -114,7 +114,7 @@ Args::Dump (Stream *s)
 }
 
 bool
-Args::GetCommandString (std::string &command)
+Args::GetCommandString (std::string &command) const
 {
     command.clear();
     int argc = GetArgumentCount();
@@ -128,7 +128,7 @@ Args::GetCommandString (std::string &command)
 }
 
 bool
-Args::GetQuotedCommandString (std::string &command)
+Args::GetQuotedCommandString (std::string &command) const
 {
     command.clear ();
     size_t argc = GetArgumentCount ();