diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-11-18 12:02:03 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2020-11-18 18:22:16 +0000 |
commit | eb28759a307ff298e2125d6d3deff260c941ec45 (patch) | |
tree | 9644927a0452f8c17024b9f9784e6be1452bbfe2 /vespalib | |
parent | 5708135b1ddbac03f268b6235027c10121cb5ca4 (diff) |
Explicit copy construction of Trace.
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/vespa/vespalib/trace/trace.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/vespalib/src/vespa/vespalib/trace/trace.h b/vespalib/src/vespa/vespalib/trace/trace.h index 55d35f55617..5be9b662c89 100644 --- a/vespalib/src/vespa/vespalib/trace/trace.h +++ b/vespalib/src/vespa/vespalib/trace/trace.h @@ -24,13 +24,12 @@ public: * Create an empty Trace with level set to 0 (no tracing) */ Trace() : Trace(0) {} - - /** - * Create an empty trace with given level. - * - * @param level Level to set. - */ explicit Trace(uint32_t level) : _root(), _level(level) { } + Trace & operator = (Trace &&) = default; + Trace(Trace &&) = default; + Trace(const Trace &) = default; + Trace & operator = (const Trace &) = delete; + ~Trace() = default; /** * Remove all trace information and set the trace level to 0. |