aboutsummaryrefslogtreecommitdiff
path: root/cc/core
diff options
context:
space:
mode:
authorwiktorg <wiktorg@google.com>2022-12-16 04:52:28 -0800
committerCopybara-Service <copybara-worker@google.com>2022-12-16 04:53:51 -0800
commitbaa4f209e6d36420c0ba62b4c67b8bb3eb231453 (patch)
treed18e1c5f894a4bc842a654e79b5c0c69f357c579 /cc/core
parent0e28f2a2f58cb12c29d10b30b85ece2c7e04c1e9 (diff)
downloadtink-baa4f209e6d36420c0ba62b4c67b8bb3eb231453.tar.gz
Use `= default` for trivial ctor/dtors.
PiperOrigin-RevId: 495844595
Diffstat (limited to 'cc/core')
-rw-r--r--cc/core/key_type_manager.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/cc/core/key_type_manager.h b/cc/core/key_type_manager.h
index a2a8c6fb8..0ca28362d 100644
--- a/cc/core/key_type_manager.h
+++ b/cc/core/key_type_manager.h
@@ -42,7 +42,7 @@ namespace internal {
template <typename KeyProto, typename KeyFormatProto>
class InternalKeyFactory {
public:
- virtual ~InternalKeyFactory() {}
+ virtual ~InternalKeyFactory() = default;
// Validates a key format proto. KeyFormatProtos
// on which this function returns a non-ok status will not be passed to
@@ -69,7 +69,7 @@ class InternalKeyFactory {
template <typename KeyProto>
class InternalKeyFactory<KeyProto, void> {
public:
- virtual ~InternalKeyFactory() {}
+ virtual ~InternalKeyFactory() = default;
};
} // namespace internal
@@ -112,7 +112,7 @@ class KeyTypeManager<KeyProtoParam, KeyFormatProtoParam, List<Primitives...>>
template <typename Primitive>
class PrimitiveFactory {
public:
- virtual ~PrimitiveFactory() {}
+ virtual ~PrimitiveFactory() = default;
virtual crypto::tink::util::StatusOr<std::unique_ptr<Primitive>> Create(
const KeyProto& key) const = 0;
};