]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/store/LocalSearch.cc
Source Format Enforcement (#532)
[thirdparty/squid.git] / src / store / LocalSearch.cc
index 5d2d439afb0deca7c1378bd062130fa33259dbf3..256efca677e6561e481ff9da2b13976f1e9d22d2 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1996-2016 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
  *
  * Squid software is distributed under GPLv2+ license and includes
  * contributions from numerous individuals and organizations.
@@ -22,8 +22,6 @@ class LocalSearch : public StoreSearch
     CBDATA_CLASS(LocalSearch);
 
 public:
-    LocalSearch();
-
     /* StoreSearch API */
     virtual void next(void (callback)(void *cbdata), void *cbdata) override;
     virtual bool next() override;
@@ -33,10 +31,8 @@ public:
 
 private:
     void copyBucket();
-    void (*callback)(void *cbdata);
-    void *cbdata;
-    bool _done;
-    int bucket;
+    bool _done = false;
+    int bucket = 0;
     std::vector<StoreEntry *> entries;
 };
 
@@ -50,13 +46,6 @@ Store::NewLocalSearch()
     return new LocalSearch;
 }
 
-Store::LocalSearch::LocalSearch() :
-    callback(NULL),
-    cbdata(NULL),
-    _done(false),
-    bucket(0)
-{}
-
 void
 Store::LocalSearch::next(void (aCallback)(void *), void *aCallbackData)
 {