summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-08-31 17:07:05 +0100
committerDan Goodliffe <daniel.goodliffe@pressassociation.com>2015-09-01 16:55:59 +0100
commitee822c0e1e53b886964c9336bd7d81d283693738 (patch)
tree0716fffe6c72d002dc015d3ea0812cf86b57c390
parentTidy up (diff)
downloadlibadhocutil-ee822c0e1e53b886964c9336bd7d81d283693738.tar.bz2
libadhocutil-ee822c0e1e53b886964c9336bd7d81d283693738.tar.xz
libadhocutil-ee822c0e1e53b886964c9336bd7d81d283693738.zip
Don't compile default destructors into everything
-rw-r--r--libadhocutil/buffer.cpp2
-rw-r--r--libadhocutil/buffer.h1
-rw-r--r--libadhocutil/nvpParse.h2
-rw-r--r--libadhocutil/nvpParse.ll2
4 files changed, 5 insertions, 2 deletions
diff --git a/libadhocutil/buffer.cpp b/libadhocutil/buffer.cpp
index 3468f27..ba0774d 100644
--- a/libadhocutil/buffer.cpp
+++ b/libadhocutil/buffer.cpp
@@ -2,6 +2,8 @@
#include <string.h>
#include <stdio.h>
+Buffer::FragmentBase::~FragmentBase() = default;
+
//
// CString Fragment
//
diff --git a/libadhocutil/buffer.h b/libadhocutil/buffer.h
index 49e7df8..602d010 100644
--- a/libadhocutil/buffer.h
+++ b/libadhocutil/buffer.h
@@ -115,7 +115,6 @@ class DLL_PUBLIC Buffer : public virtual IntrusivePtrBase {
typedef std::vector<FragmentPtr> Content;
mutable Content content;
};
-Buffer::FragmentBase::~FragmentBase() = default;
// libmisc compat macros
#define vstringf Buffer().vappendf
diff --git a/libadhocutil/nvpParse.h b/libadhocutil/nvpParse.h
index 0e3f2ff..09ff145 100644
--- a/libadhocutil/nvpParse.h
+++ b/libadhocutil/nvpParse.h
@@ -65,7 +65,7 @@ class NvpParse : public yyFlexLexer {
private:
NvpParse(std::istream & in, const AssignMap &);
- ~NvpParse() = default;
+ ~NvpParse();
int yylex() override;
void LexerError(const char * msg) override;
diff --git a/libadhocutil/nvpParse.ll b/libadhocutil/nvpParse.ll
index 7e4d0dc..1e6a528 100644
--- a/libadhocutil/nvpParse.ll
+++ b/libadhocutil/nvpParse.ll
@@ -62,6 +62,8 @@ NvpParse::NvpParse(std::istream & in, const AssignMap & v) :
{
}
+NvpParse::~NvpParse() = default;
+
void
NvpParse::process(const std::string & value) const
{