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:38:08 UTC
(logging-log4cxx) branch master updated: Prevent SonarCloud warning (#505)
This is an automated email from the ASF dual-hosted git repository.
swebb2066 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git
The following commit(s) were added to refs/heads/master by this push:
new 3313b34b Prevent SonarCloud warning (#505)
3313b34b is described below
commit 3313b34be5244d66d1fd4d2b7bab1a4bc85f4a6b
Author: Stephen Webb <st...@ieee.org>
AuthorDate: Wed Jul 2 10:38:03 2025 +1000
Prevent SonarCloud warning (#505)
---
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; }