Commit b037963e authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[2726] Make some things noncopyable

We don't copy them and the implicit copy constructor would be wrong. So
silence the cppcheck and make sure nobody copies by accident.
parent a9d957c1
......@@ -23,6 +23,7 @@
#include <string>
#include <map>
#include <utility>
#include <boost/noncopyable.hpp>
// log4cplus logger header file
......@@ -61,7 +62,7 @@ namespace log {
/// b) The idea of debug levels is implemented. See logger_level.h and
/// logger_level_impl.h for more details on this.
class LoggerImpl {
class LoggerImpl : public boost::noncopyable {
public:
/// \brief Constructor
......
......@@ -19,6 +19,8 @@
#include <util/threads/sync.h>
#include <log/logger_specification.h>
#include <boost/noncopyable.hpp>
// Generated if, when updating the logging specification, an unknown
// destination is encountered.
class UnknownLoggingDestination : public isc::Exception {
......@@ -41,7 +43,7 @@ class LoggerManagerImpl;
/// To isolate the underlying implementation from basic processing, the
/// LoggerManager is implemented using the "pimpl" idiom.
class LoggerManager {
class LoggerManager : public boost::noncopyable {
public:
/// \brief Constructor
LoggerManager();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment