From: Yonggoo Kang Date: Thu, 14 Mar 2024 12:00:20 +0000 (+0900) Subject: Fix minor X-Git-Tag: accepted/tizen/unified/20240423.164622~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2bc04f3237efcdf451bde2c648b16236057d72c7;p=platform%2Fcore%2Fsecurity%2Fwebauthn.git Fix minor - Fix typo - Add a missing header - Remove unnecessary newlines Change-Id: Id9b5f287a4dbdca9b997fcfb6241a07b783772fd --- diff --git a/srcs/common/service-file-locker.cpp b/srcs/common/service-file-locker.cpp index ad9629e..cdeb7c6 100644 --- a/srcs/common/service-file-locker.cpp +++ b/srcs/common/service-file-locker.cpp @@ -32,8 +32,6 @@ inline constexpr auto FILE_LOCKER = LOCKER_PATH_PREFIX "webauthn.lock"; namespace WA { ServiceFileLocker::ServiceFileLocker(bool blocking) : - FileLocker(FILE_LOCKER, blocking) -{ -} + FileLocker(FILE_LOCKER, blocking) {} } /* namespace WebAuthn */ diff --git a/srcs/common/singleton.h b/srcs/common/singleton.h index 048c07f..a456984 100644 --- a/srcs/common/singleton.h +++ b/srcs/common/singleton.h @@ -34,14 +34,12 @@ class Singleton : // private: - Singleton() - {} + Singleton() {} static Singleton &InternalInstance(); public: - virtual ~Singleton() - {} + virtual ~Singleton() {} static Class &Instance(); }; diff --git a/srcs/server/dl-loader.cpp b/srcs/server/dl-loader.cpp index 0ab354b..5b3ed9c 100644 --- a/srcs/server/dl-loader.cpp +++ b/srcs/server/dl-loader.cpp @@ -29,13 +29,13 @@ namespace WA { m_libraryHandle = dlopen(m_libraryPath.c_str(), RTLD_LAZY | RTLD_LOCAL); if (!m_libraryHandle) { - LogError("Unale to load library(" << m_libraryPath << "): " << dlerror()); + LogError("Unable to load library(" << m_libraryPath << "): " << dlerror()); throw std::runtime_error("Unable to load library"); } } DLLoader::~DLLoader() { - LogDebug("Unlaoding library: " << m_libraryPath); + LogDebug("Unloading library: " << m_libraryPath); dlclose(m_libraryHandle); } void* DLLoader::ResolveFunction(const std::string &name) noexcept diff --git a/srcs/server/socket-manager.h b/srcs/server/socket-manager.h index ca1cdb6..0300819 100644 --- a/srcs/server/socket-manager.h +++ b/srcs/server/socket-manager.h @@ -27,6 +27,7 @@ #include #include +#include namespace WA {