]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Cleanup struct nullindex_t
authorFred Morcos <fred.morcos@open-xchange.com>
Wed, 16 Oct 2024 13:47:19 +0000 (15:47 +0200)
committerFred Morcos <fred.morcos@open-xchange.com>
Wed, 16 Oct 2024 13:57:48 +0000 (15:57 +0200)
ext/lmdb-safe/lmdb-typed.hh

index 8d7519baeb271e8cdc02e632a002392dd175aa12..c6e95dbac743cbf288cd0bb337285e5424379ee4 100644 (file)
@@ -209,16 +209,15 @@ struct index_on_function : LMDBIndexOps<Class, Type, index_on_function<Class, Ty
 /** nop index, so we can fill our N indexes, even if you don't use them all */
 struct nullindex_t
 {
-  template<typename Class>
-  void put(MDBRWTransaction& /* txn */, const Class& /* t */, uint32_t /* id */, int /* flags */ =0)
+  template <typename Class>
+  void put(MDBRWTransaction& /* txn */, const Class& /* t */, uint32_t /* id */, int /* flags */ = 0)
   {}
-  template<typename Class>
+  template <typename Class>
   void del(MDBRWTransaction& /* txn */, const Class& /* t */, uint32_t /* id */)
   {}
 
   void openDB(std::shared_ptr<MDBEnv>& /* env */, string_view /* str */, int /* flags */)
   {
-
   }
 
   using type = uint32_t; // dummy