]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Make ConfigParser::QuoteString parameter const
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Tue, 16 Apr 2013 15:08:46 +0000 (18:08 +0300)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Tue, 16 Apr 2013 15:08:46 +0000 (18:08 +0300)
src/ConfigParser.cc
src/ConfigParser.h

index ceac61590aedc9f9a8886192456c451aaab8672a..453ca76f6fdaba8b2964a726b59ee47d4308fb5c 100644 (file)
@@ -188,7 +188,7 @@ ConfigParser::ParseQuotedString(String *var, bool *wasQuoted)
 }
 
 const char *
-ConfigParser::QuoteString(String &var)
+ConfigParser::QuoteString(const String &var)
 {
     static String quotedStr;
     const char *s = var.termedBuf();
index c5807d8f5fafced57eaf19cef350488f06964659..f313a5a6c2db306e1fda9153f23ea82158735fd6 100644 (file)
@@ -77,7 +77,7 @@ public:
     /// quotes. TODO: support quoted strings anywhere a token is accepted.
     static void ParseQuotedString(char **var, bool *wasQuoted = NULL);
     static void ParseQuotedString(String *var, bool *wasQuoted = NULL);
-    static const char *QuoteString(String &var);
+    static const char *QuoteString(const String &var);
     static void ParseWordList(wordlist **list);
     static char * strtokFile();
     static void strtokFileUndo();