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 | |
parent | f6d091c5a6d57dbe4ac04d86237b21dc2cd40c72 (diff) | |
download | ydb-79407354116b90693d57b2452f1a19ebd5ce7a40.tar.gz |
Virtual destructor libraries
Virtual destructor in cpp library
-rw-r--r-- | library/cpp/resource/registry.h | 4 | ||||
-rw-r--r-- | library/python/symbols/registry/syms.h | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/library/cpp/resource/registry.h b/library/cpp/resource/registry.h index a2d0ef768df..698ca5354dd 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(); diff --git a/library/python/symbols/registry/syms.h b/library/python/symbols/registry/syms.h index 5e34d35298c..53d684f5d9b 100644 --- a/library/python/symbols/registry/syms.h +++ b/library/python/symbols/registry/syms.h @@ -3,6 +3,7 @@ namespace NPrivate { struct ICB { virtual void Apply(const char* mod, const char* name, void* sym) = 0; + virtual ~ICB() = default; }; void ForEachSymbol(ICB& cb); |