]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
SourceFormat Enforcement
authorSource Maintenance <squidadm@squid-cache.org>
Wed, 29 Jul 2015 18:12:16 +0000 (18:12 +0000)
committerSource Maintenance <squidadm@squid-cache.org>
Wed, 29 Jul 2015 18:12:16 +0000 (18:12 +0000)
src/SBuf.cc
src/SBuf.h
src/SBufAlgos.cc
src/SBufAlgos.h
src/tests/testSBuf.cc

index 24b3ccdfb272bed65c86c176c804497a01893e41..fbaffcbaa4cf224ba35414b03198c016384a47c0 100644 (file)
@@ -952,3 +952,4 @@ SBuf::cow(SBuf::size_type newsize)
     }
     reAlloc(newsize);
 }
+
index 4c18969316e6e5e47acc2857eb9dfd4af321e2fd..31c51cdaf0268dc32493a460063b3d7daec77c3f 100644 (file)
@@ -783,3 +783,4 @@ SBufIterator::operator!=(const SBufIterator &s) const
 }
 
 #endif /* SQUID_SBUF_H */
+
index 68ddfeb4e6d58fdfe25a844ac0b5c263e945486a..595094f44abc4bd1976cbf64360872ca0a08b595 100644 (file)
@@ -22,3 +22,4 @@ std::size_t std::hash<SBuf>::operator() (const SBuf & sbuf) const noexcept
     }
     return rv ^ (sbuf.length() * 271);
 }
+
index a9ea4208e56aeccebe4189ba6af231f3885958e4..6bd1f694080727cc0f6f30cdc8f7bdf0995c60d9 100644 (file)
@@ -82,12 +82,12 @@ SBufContainerJoin(const Container &items, const SBuf& separator)
 }
 
 namespace std {
-    /// default hash functor to support std::unordered_map<SBuf,*>
-    template <>
-    struct hash<SBuf>
-    {
-        size_t operator()(const SBuf &) const noexcept;
-    };
+/// default hash functor to support std::unordered_map<SBuf,*>
+template <>
+struct hash<SBuf>
+{
+    size_t operator()(const SBuf &) const noexcept;
+};
 }
 
 #endif /* SQUID_SBUFALGOS_H_ */
index a9207bc4ad3b264d81ea3d42506e77be5ef5e5ba..6a75fae5666482ff25d71222ee22f23d3c976c83 100644 (file)
@@ -9,8 +9,8 @@
 #include "squid.h"
 #include "base/CharacterSet.h"
 #include "SBuf.h"
-#include "SBufFindTest.h"
 #include "SBufAlgos.h"
+#include "SBufFindTest.h"
 #include "SBufStream.h"
 #include "SquidString.h"
 #include "testSBuf.h"
@@ -981,3 +981,4 @@ testSBuf::testSBufHash()
         CPPUNIT_ASSERT(i == um.end());
     }
 }
+