summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vdstestlib/src/vespa/vdstestlib/cppunit/dirconfig.cpp6
-rw-r--r--vdstestlib/src/vespa/vdstestlib/cppunit/dirconfig.h2
2 files changed, 7 insertions, 1 deletions
diff --git a/vdstestlib/src/vespa/vdstestlib/cppunit/dirconfig.cpp b/vdstestlib/src/vespa/vdstestlib/cppunit/dirconfig.cpp
index d0bcb47ae0c..8716f934673 100644
--- a/vdstestlib/src/vespa/vdstestlib/cppunit/dirconfig.cpp
+++ b/vdstestlib/src/vespa/vdstestlib/cppunit/dirconfig.cpp
@@ -1,6 +1,6 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-#include <vespa/vdstestlib/cppunit/dirconfig.hpp>
+#include "dirconfig.hpp"
#include <vespa/vespalib/io/fileutil.h>
#include <vespa/vespalib/util/exceptions.h>
@@ -56,6 +56,8 @@ DirConfig::Config::Config(const ConfigName& name)
{
}
+DirConfig::Config::~Config() {}
+
void
DirConfig::Config::set(const ConfigKey& key)
{
@@ -113,6 +115,8 @@ DirConfig::DirConfig()
vespalib::mkdir(_dirName, true);
}
+DirConfig::~DirConfig() {}
+
DirConfig::Config&
DirConfig::addConfig(const ConfigName& name)
{
diff --git a/vdstestlib/src/vespa/vdstestlib/cppunit/dirconfig.h b/vdstestlib/src/vespa/vdstestlib/cppunit/dirconfig.h
index 5fe933fb689..6771f951d28 100644
--- a/vdstestlib/src/vespa/vdstestlib/cppunit/dirconfig.h
+++ b/vdstestlib/src/vespa/vdstestlib/cppunit/dirconfig.h
@@ -35,6 +35,7 @@ struct DirConfig {
mutable bool dirtyCache;
Config(const ConfigName&);
+ ~Config();
void clear() { config.clear(); }
void set(const ConfigKey&); // Set valueless key, such as array size
@@ -48,6 +49,7 @@ struct DirConfig {
};
DirConfig();
+ ~DirConfig();
// Adjusts the memory representation of this config.
// publish() to push the config from memory to files.