You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by sw...@apache.org on 2025/07/02 00:04:15 UTC
(logging-log4cxx) 01/01: Prevent SonarCloud warning
This is an automated email from the ASF dual-hosted git repository.
swebb2066 pushed a commit to branch silence_sonacloud
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git
commit f2ba7b57b87d99da9de2e7048008fbdb9904422f
Author: Stephen Webb <sw...@gmail.com>
AuthorDate: Wed Jul 2 10:03:54 2025 +1000
Prevent SonarCloud warning
---
src/main/include/log4cxx/helpers/singletonholder.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/main/include/log4cxx/helpers/singletonholder.h b/src/main/include/log4cxx/helpers/singletonholder.h
index 66651d99..e8b8ef23 100644
--- a/src/main/include/log4cxx/helpers/singletonholder.h
+++ b/src/main/include/log4cxx/helpers/singletonholder.h
@@ -48,6 +48,9 @@ public: // ...structors
SingletonHolder(Args&& ... args)
: m_data(std::forward<Args>(args) ... )
{}
+ // Prevent copying
+ SingletonHolder(const SingletonHolder&) = delete;
+ SingletonHolder(SingletonHolder&&) = delete;
public: // Accessors
T& value() { return m_data; }