summaryrefslogtreecommitdiffstats
path: root/staging_vespalib
diff options
context:
space:
mode:
Diffstat (limited to 'staging_vespalib')
-rw-r--r--staging_vespalib/src/vespa/vespalib/objects/cloneable.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/staging_vespalib/src/vespa/vespalib/objects/cloneable.h b/staging_vespalib/src/vespa/vespalib/objects/cloneable.h
index f6fcce0156b..c219907ae36 100644
--- a/staging_vespalib/src/vespa/vespalib/objects/cloneable.h
+++ b/staging_vespalib/src/vespa/vespalib/objects/cloneable.h
@@ -1,5 +1,7 @@
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+
#pragma once
+
/**
* @class vespalib::Cloneable
* @brief Superclass for objects implementing clone() deep copy.
@@ -19,7 +21,7 @@ public:
* don't need to cast it to get the correct type.
*/
virtual Cloneable* clone() const = 0;
- virtual ~Cloneable() {}
+ virtual ~Cloneable() = default;
};
} // namespace vespalib