]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix PosToString duplicate definiton
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 9 Oct 2013 14:02:57 +0000 (08:02 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 9 Oct 2013 14:02:57 +0000 (08:02 -0600)
Since SBuf::size_type and std::string::size_type are now both unsigned
and npos is the same value in both this function is a duplicate and
the stricter compilers complain.

src/tests/SBufFindTest.cc

index 5e436f5d210474d6c84aa69212192fe8bcb31284..16de357a983a55eead5908b921348950f188c867 100644 (file)
@@ -189,12 +189,14 @@ AnyToString(const Type &value)
     return sbuf.str();
 }
 
+#if 0
 /// helper function to convert SBuf position to a human-friendly string
 inline std::string
 PosToString(const SBuf::size_type pos)
 {
     return pos == SBuf::npos ? std::string("npos") : AnyToString(pos);
 }
+#endif
 
 /// helper function to convert std::string position to a human-friendly string
 inline std::string