diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-08-31 17:07:05 +0100 |
---|---|---|
committer | Dan Goodliffe <daniel.goodliffe@pressassociation.com> | 2015-09-01 16:55:59 +0100 |
commit | ee822c0e1e53b886964c9336bd7d81d283693738 (patch) | |
tree | 0716fffe6c72d002dc015d3ea0812cf86b57c390 | |
parent | Tidy up (diff) | |
download | libadhocutil-ee822c0e1e53b886964c9336bd7d81d283693738.tar.bz2 libadhocutil-ee822c0e1e53b886964c9336bd7d81d283693738.tar.xz libadhocutil-ee822c0e1e53b886964c9336bd7d81d283693738.zip |
Don't compile default destructors into everything
-rw-r--r-- | libadhocutil/buffer.cpp | 2 | ||||
-rw-r--r-- | libadhocutil/buffer.h | 1 | ||||
-rw-r--r-- | libadhocutil/nvpParse.h | 2 | ||||
-rw-r--r-- | libadhocutil/nvpParse.ll | 2 |
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 { |