aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-03-24 15:59:19 +0100
committerHenning Baldersheim <balder@yahoo-inc.com>2017-03-27 16:21:02 +0200
commit686705737e62988387881b7ada5f9ada2167290a (patch)
tree2f0d651b7c0c29f87364d7b11a82154a0ac4074c /vespalib
parent452e4aa1cb4e26e5a91a15984faa3951760f8935 (diff)
Use cloneableptr for expressiontree. It aint't copied anyway.
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/vespa/vespalib/util/memory.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/vespalib/src/vespa/vespalib/util/memory.h b/vespalib/src/vespa/vespalib/util/memory.h
index d43190bd177..2d940882320 100644
--- a/vespalib/src/vespa/vespalib/util/memory.h
+++ b/vespalib/src/vespa/vespalib/util/memory.h
@@ -341,7 +341,7 @@ public:
}
/** @brief destructor doing delete on owned pointer */
- ~CloneablePtr() { cleanup(); }
+ ~CloneablePtr() noexcept { cleanup(); }
/** @brief copy constructor, does deep copy using clone() */
CloneablePtr(const CloneablePtr & rhs) : _p(nullptr) {
@@ -387,7 +387,7 @@ public:
/** @brief release owned pointer */
T * release() { T * p(_p); _p = nullptr; return p; }
private:
- void cleanup() {
+ void cleanup() noexcept {
if (_p) {
delete _p;
_p = nullptr;