diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2017-03-24 15:59:19 +0100 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2017-03-27 16:21:02 +0200 |
commit | 686705737e62988387881b7ada5f9ada2167290a (patch) | |
tree | 2f0d651b7c0c29f87364d7b11a82154a0ac4074c /vespalib | |
parent | 452e4aa1cb4e26e5a91a15984faa3951760f8935 (diff) |
Use cloneableptr for expressiontree. It aint't copied anyway.
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/vespa/vespalib/util/memory.h | 4 |
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; |