diff options
author | jack239 <jack239@yandex-team.com> | 2023-08-14 11:15:09 +0300 |
---|---|---|
committer | jack239 <jack239@yandex-team.com> | 2023-08-14 12:43:25 +0300 |
commit | 79407354116b90693d57b2452f1a19ebd5ce7a40 (patch) | |
tree | 4ba9a5ac3132aa41e77033ae0fa8059c44152bb4 /library/cpp | |
parent | f6d091c5a6d57dbe4ac04d86237b21dc2cd40c72 (diff) | |
download | ydb-79407354116b90693d57b2452f1a19ebd5ce7a40.tar.gz |
Virtual destructor libraries
Virtual destructor in cpp library
Diffstat (limited to 'library/cpp')
-rw-r--r-- | library/cpp/resource/registry.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/resource/registry.h b/library/cpp/resource/registry.h index a2d0ef768d..698ca5354d 100644 --- a/library/cpp/resource/registry.h +++ b/library/cpp/resource/registry.h @@ -12,6 +12,7 @@ namespace NResource { class IMatch { public: virtual void OnMatch(const TResource& res) = 0; + virtual ~IMatch() = default; }; class IStore { @@ -22,8 +23,7 @@ namespace NResource { virtual void FindMatch(const TStringBuf subkey, IMatch& cb) const = 0; virtual size_t Count() const noexcept = 0; virtual TStringBuf KeyByIndex(size_t idx) const = 0; - virtual ~IStore() { - } + virtual ~IStore() = default; }; IStore* CommonStore(); |