]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Avoid a string copy/reference operation in a reasonably critical path in the Header...
authoradrian <>
Thu, 14 Sep 2006 12:04:27 +0000 (12:04 +0000)
committeradrian <>
Thu, 14 Sep 2006 12:04:27 +0000 (12:04 +0000)
src/HttpHeader.cc

index 3574b86ad423c3c4bcd435e7e4bb5cec4d4b054e..1db9814c6de8edfbb35103eaf3f10f68a84d2117 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: HttpHeader.cc,v 1.124 2006/09/02 00:27:04 robertc Exp $
+ * $Id: HttpHeader.cc,v 1.125 2006/09/14 06:04:27 adrian Exp $
  *
  * DEBUG: section 55    HTTP Header
  * AUTHOR: Alex Rousskov
@@ -256,7 +256,7 @@ static int HeaderEntryParsedCount = 0;
 
 #define assert_eid(id) assert((id) >= 0 && (id) < HDR_ENUM_END)
 
-static void httpHeaderNoteParsedEntry(http_hdr_type id, String value, int error);
+static void httpHeaderNoteParsedEntry(http_hdr_type id, String const &value, int error);
 
 static void httpHeaderStatInit(HttpHeaderStat * hs, const char *label);
 static void httpHeaderStatDump(const HttpHeaderStat * hs, StoreEntry * e);
@@ -1450,7 +1450,7 @@ HttpHeaderEntry::getInt() const
 }
 
 static void
-httpHeaderNoteParsedEntry(http_hdr_type id, String context, int error)
+httpHeaderNoteParsedEntry(http_hdr_type id, String const &context, int error)
 {
     Headers[id].stat.parsCount++;