From: Fred Morcos Date: Fri, 18 Oct 2024 11:51:57 +0000 (+0200) Subject: Minor formatting and cleanup X-Git-Tag: rec-5.2.0-alpha1~19^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9ed174fb07e9a66a705ffdd764eaa652005fd87e;p=thirdparty%2Fpdns.git Minor formatting and cleanup --- diff --git a/ext/lmdb-safe/lmdb-safe.hh b/ext/lmdb-safe/lmdb-safe.hh index 8190f16ca7..b355c594ef 100644 --- a/ext/lmdb-safe/lmdb-safe.hh +++ b/ext/lmdb-safe/lmdb-safe.hh @@ -240,7 +240,7 @@ inline std::string MDBOutVal::get() const } template <> -inline string_view MDBOutVal::get() const +inline std::string_view MDBOutVal::get() const { return {static_cast(d_mdbval.mv_data), d_mdbval.mv_size}; } @@ -256,7 +256,7 @@ inline std::string MDBOutVal::get() const } template <> -inline string_view MDBOutVal::get() const +inline std::string_view MDBOutVal::get() const { size_t offset = LMDBLS::LScheckHeaderAndGetSize(this); // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic) @@ -270,7 +270,7 @@ inline std::string MDBOutVal::getNoStripHeader() const } template <> -inline string_view MDBOutVal::getNoStripHeader() const +inline std::string_view MDBOutVal::getNoStripHeader() const { return {static_cast(d_mdbval.mv_data), d_mdbval.mv_size}; } diff --git a/ext/lmdb-safe/lmdb-typed.hh b/ext/lmdb-safe/lmdb-typed.hh index 626c201713..3179a439b2 100644 --- a/ext/lmdb-safe/lmdb-typed.hh +++ b/ext/lmdb-safe/lmdb-typed.hh @@ -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 + template struct ReadonlyOperations { - ReadonlyOperations(Parent& parent) : d_parent(parent) + ReadonlyOperations(Parent& parent) : + d_parent(parent) {} // //! Number of entries in main database