]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/adaptation/icap/Options.h
Source Format Enforcement (#763)
[thirdparty/squid.git] / src / adaptation / icap / Options.h
index 5198c4bb37bd0c3532fd4f7b6009a555b8084b36..8509dedce540b37b9a46f10bc7dd3cb6aa7643f1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
  *
  * Squid software is distributed under GPLv2+ license and includes
  * contributions from numerous individuals and organizations.
@@ -42,7 +42,7 @@ public:
     time_t timestamp() const { return theTimestamp; };
 
     typedef enum { xferNone, xferPreview, xferIgnore, xferComplete } TransferKind;
-    TransferKind transferKind(const String &urlPath) const;
+    TransferKind transferKind(const SBuf &urlPath) const;
 
 public:
     const char *error; // human-readable information; set iff !valid()
@@ -68,7 +68,7 @@ protected:
         TransferList();
         ~TransferList();
 
-        bool matches(const String &urlPath) const;
+        bool matches(const SBuf &urlPath) const;
 
         void parse(const String &buf, bool &foundStar);
         void add(const char *extension);
@@ -101,3 +101,4 @@ private:
 } // namespace Adaptation
 
 #endif /* SQUID_ICAPOPTIONS_H */
+