diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2013-03-22 02:09:38 -0700 |
---|---|---|
committer | Patrick Ohly <patrick.ohly@intel.com> | 2013-04-22 16:01:45 +0200 |
commit | eb40cfe0456b0fad03a10b36a1fec7b367eb4bd7 (patch) | |
tree | 97af472d111dd93bf43d0a222cb3d7b880ac3fd3 | |
parent | 8f24f1706b471b10de7e252023ee785f70c4e2e2 (diff) |
LogRedirect: mark class as noncopyable
The class is noncopyable because of a plain pointer. Klocwork warned
about that.
-rw-r--r-- | src/syncevo/LogRedirect.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/syncevo/LogRedirect.cpp b/src/syncevo/LogRedirect.cpp index b8e958d2..4a29c521 100644 --- a/src/syncevo/LogRedirect.cpp +++ b/src/syncevo/LogRedirect.cpp @@ -34,6 +34,7 @@ #include <signal.h> #include <boost/algorithm/string/predicate.hpp> +#include <boost/noncopyable.hpp> #include <algorithm> #include <iostream> @@ -626,7 +627,7 @@ class LogRedirectTest : public CppUnit::TestFixture { * redirect stdout/stderr, then intercept the log messages and * store them for inspection */ - class LogBuffer : public LoggerBase + class LogBuffer : public LoggerBase, private boost::noncopyable { public: std::stringstream m_streams[DEBUG + 1]; |