summaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-08-21 11:59:54 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2019-08-21 20:27:38 +0000
commit661856ff8cc4e1e1a454bdd34b36463a4c42d20d (patch)
tree106f2c88ae37222a0320274959dcaa15cb14ee1a /vespalib
parente931d5321e5717a2d6ecca32a0b8880e0e29caa3 (diff)
Do not generate old formats, not even in tests.
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/vespa/vespalib/util/exception.cpp8
-rw-r--r--vespalib/src/vespa/vespalib/util/exceptions.cpp2
2 files changed, 4 insertions, 6 deletions
diff --git a/vespalib/src/vespa/vespalib/util/exception.cpp b/vespalib/src/vespa/vespalib/util/exception.cpp
index 318b167d27b..684cc547d67 100644
--- a/vespalib/src/vespa/vespalib/util/exception.cpp
+++ b/vespalib/src/vespa/vespalib/util/exception.cpp
@@ -58,8 +58,7 @@ swap(ExceptionPtr &a, ExceptionPtr &b)
//-----------------------------------------------------------------------------
-Exception::Exception(stringref msg, stringref location,
- int skipStack)
+Exception::Exception(stringref msg, stringref location, int skipStack)
: _what(),
_msg(msg),
_location(location),
@@ -69,8 +68,7 @@ Exception::Exception(stringref msg, stringref location,
{
}
-Exception::Exception(stringref msg, const Exception &cause,
- stringref location, int skipStack)
+Exception::Exception(stringref msg, const Exception &cause, stringref location, int skipStack)
: _what(),
_msg(msg),
_location(location),
@@ -81,7 +79,7 @@ Exception::Exception(stringref msg, const Exception &cause,
Exception::Exception(const Exception &) = default;
Exception & Exception::operator = (const Exception &) = default;
-Exception::~Exception() {}
+Exception::~Exception() = default;
const char *
Exception::what() const throw()
diff --git a/vespalib/src/vespa/vespalib/util/exceptions.cpp b/vespalib/src/vespa/vespalib/util/exceptions.cpp
index 64ce947b5c0..60a41c272e0 100644
--- a/vespalib/src/vespa/vespalib/util/exceptions.cpp
+++ b/vespalib/src/vespa/vespalib/util/exceptions.cpp
@@ -100,7 +100,7 @@ PortListenException::PortListenException(int port, vespalib::stringref protocol,
PortListenException::PortListenException(const PortListenException &) = default;
PortListenException & PortListenException::operator = (const PortListenException &) = default;
-PortListenException::~PortListenException() {}
+PortListenException::~PortListenException() = default;
//-----------------------------------------------------------------------------