summaryrefslogtreecommitdiff
path: root/src/generic/util
diff options
context:
space:
mode:
authorDaniel Burrows <Daniel Burrows Daniel_Burrows@alumni.brown.edu>2010-05-25 00:32:48 -0700
committerDaniel Burrows <Daniel Burrows Daniel_Burrows@alumni.brown.edu>2010-05-25 00:32:48 -0700
commit335f355d491fb507486d00f6c86f321c7f8bc095 (patch)
treec525593c460c6c4930997b54d8bd7505442e7da7 /src/generic/util
parent8d7963910a2d94bc3fcc4e232773cf43285048cb (diff)
downloadaptitude-335f355d491fb507486d00f6c86f321c7f8bc095.tar.gz
Give Logger a virtual destructor.
Diffstat (limited to 'src/generic/util')
-rw-r--r--src/generic/util/logging.cc4
-rw-r--r--src/generic/util/logging.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/generic/util/logging.cc b/src/generic/util/logging.cc
index 7e3a9e1d..ab94384c 100644
--- a/src/generic/util/logging.cc
+++ b/src/generic/util/logging.cc
@@ -326,6 +326,10 @@ namespace aptitude
{
}
+ Logger::~Logger()
+ {
+ }
+
LoggerPtr Logger::getLogger(const std::string &category)
{
return LoggingSystem::get().getLogger(category);
diff --git a/src/generic/util/logging.h b/src/generic/util/logging.h
index 5337dcf5..bcf0c927 100644
--- a/src/generic/util/logging.h
+++ b/src/generic/util/logging.h
@@ -92,6 +92,8 @@ namespace aptitude
friend class LoggingSystem;
public:
+ virtual ~Logger();
+
/** \brief Return \b true if messages logged at the given
* level will appear.
*