From 30c48c66b8fdc523b4fa3bf9649a4fb45dde0e67 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Tue, 5 Nov 2024 22:49:58 +0100 Subject: Style cleanup Remove unused parameter names, extra colons, code that is never executed and an opinionated detekt check. --- libs/samba/src/main/cpp/jni.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libs/samba/src/main/cpp/jni.hpp') diff --git a/libs/samba/src/main/cpp/jni.hpp b/libs/samba/src/main/cpp/jni.hpp index aa79bbe..55b7752 100644 --- a/libs/samba/src/main/cpp/jni.hpp +++ b/libs/samba/src/main/cpp/jni.hpp @@ -24,7 +24,7 @@ template class Ref { public: constexpr Ref() : ptr_(nullptr) {} - constexpr Ref(std::nullptr_t) : ptr_(nullptr) {} + constexpr Ref(std::nullptr_t) : ptr_(nullptr) {} // NOLINT Ref(const Ref&) = delete; [[nodiscard]] T get() const { return ptr_; } @@ -62,7 +62,7 @@ template class LocalRef : public Ref { public: constexpr LocalRef(): Ref() {} - constexpr LocalRef(std::nullptr_t): Ref() {} + constexpr LocalRef(std::nullptr_t): Ref() {} // NOLINT LocalRef(JNIEnv* env, T ptr): Ref(env, ptr) {} ~LocalRef() override { free(); } @@ -109,7 +109,7 @@ template class GlobalRef : public Ref { public: constexpr GlobalRef() : Ref() {} - constexpr GlobalRef(std::nullptr_t) : Ref() {} + constexpr GlobalRef(std::nullptr_t) : Ref() {} // NOLINT GlobalRef(JNIEnv* env, T ptr) : Ref() { if (ptr) { if (!env) @@ -117,7 +117,7 @@ class GlobalRef : public Ref { this->ptr_ = static_cast(env->NewGlobalRef(static_cast(ptr))); } } - GlobalRef(const Ref& other) : Ref() { + GlobalRef(const Ref& other) : Ref() { // NOLINT if (other) { auto* env = AttachCurrentThread(); this->ptr_ = static_cast(env->NewGlobalRef(static_cast(other.get()))); -- cgit v1.2.3-70-g09d2