aboutsummaryrefslogtreecommitdiff
path: root/cc/prf
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/prf
parent0e28f2a2f58cb12c29d10b30b85ece2c7e04c1e9 (diff)
downloadtink-baa4f209e6d36420c0ba62b4c67b8bb3eb231453.tar.gz
Use `= default` for trivial ctor/dtors.
PiperOrigin-RevId: 495844595
Diffstat (limited to 'cc/prf')
-rw-r--r--cc/prf/prf_set.h4
-rw-r--r--cc/prf/prf_set_wrapper.cc2
2 files changed, 3 insertions, 3 deletions
diff --git a/cc/prf/prf_set.h b/cc/prf/prf_set.h
index 51c0636e9..ddf630b7b 100644
--- a/cc/prf/prf_set.h
+++ b/cc/prf/prf_set.h
@@ -46,7 +46,7 @@ namespace tink {
// for non-deterministic MAC algorithms.
class Prf {
public:
- virtual ~Prf() {}
+ virtual ~Prf() = default;
// Computes the PRF selected by the underlying key on input and
// returns the first outputLength bytes.
// When choosing this parameter keep the birthday paradox in mind.
@@ -67,7 +67,7 @@ class Prf {
// the Keyset.
class PrfSet {
public:
- virtual ~PrfSet() {}
+ virtual ~PrfSet() = default;
// The primary ID of the keyset.
virtual uint32_t GetPrimaryId() const = 0;
// A map of the PRFs represented by the keys in this keyset.
diff --git a/cc/prf/prf_set_wrapper.cc b/cc/prf/prf_set_wrapper.cc
index 2ce7646b6..89adbdaf7 100644
--- a/cc/prf/prf_set_wrapper.cc
+++ b/cc/prf/prf_set_wrapper.cc
@@ -45,7 +45,7 @@ class PrfSetPrimitiveWrapper : public PrfSet {
}
const std::map<uint32_t, Prf*>& GetPrfs() const override { return prfs_; }
- ~PrfSetPrimitiveWrapper() override {}
+ ~PrfSetPrimitiveWrapper() override = default;
private:
std::unique_ptr<PrimitiveSet<Prf>> prf_set_;