]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Minor formatting and cleanup
authorFred Morcos <fred.morcos@open-xchange.com>
Fri, 18 Oct 2024 11:51:57 +0000 (13:51 +0200)
committerFred Morcos <fred.morcos@open-xchange.com>
Fri, 18 Oct 2024 11:54:49 +0000 (13:54 +0200)
ext/lmdb-safe/lmdb-safe.hh
ext/lmdb-safe/lmdb-typed.hh

index 8190f16ca70d1b2e1d6b415c5702afddbfe0c614..b355c594ef11178bbd43ca57b776d3e2ec28297a 100644 (file)
@@ -240,7 +240,7 @@ inline std::string MDBOutVal::get<std::string>() const
 }
 
 template <>
-inline string_view MDBOutVal::get<string_view>() const
+inline std::string_view MDBOutVal::get<std::string_view>() const
 {
   return {static_cast<char*>(d_mdbval.mv_data), d_mdbval.mv_size};
 }
@@ -256,7 +256,7 @@ inline std::string MDBOutVal::get<std::string>() const
 }
 
 template <>
-inline string_view MDBOutVal::get<string_view>() const
+inline std::string_view MDBOutVal::get<std::string_view>() const
 {
   size_t offset = LMDBLS::LScheckHeaderAndGetSize(this);
   // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic)
@@ -270,7 +270,7 @@ inline std::string MDBOutVal::getNoStripHeader<std::string>() const
 }
 
 template <>
-inline string_view MDBOutVal::getNoStripHeader<string_view>() const
+inline std::string_view MDBOutVal::getNoStripHeader<std::string_view>() const
 {
   return {static_cast<char*>(d_mdbval.mv_data), d_mdbval.mv_size};
 }
index 626c201713d13de67ff71e6f0b679e3bf6c10889..3179a439b2586c289ea57c889996e4b49677f2bc 100644 (file)
@@ -252,10 +252,11 @@ public:
 
   // We support readonly and rw transactions. Here we put the Readonly operations
   // which get sourced by both kinds of transactions
-  template<class Parent>
+  template <class Parent>
   struct ReadonlyOperations
   {
-    ReadonlyOperations(Parent& parent) : d_parent(parent)
+    ReadonlyOperations(Parent& parent) :
+      d_parent(parent)
     {}
 
     // //! Number of entries in main database