diff options
| author | 2018-01-05 23:27:33 +0000 | |
|---|---|---|
| committer | 2018-01-05 23:27:33 +0000 | |
| commit | 27f61a94d67cf16d1ec0a12adfc97c77e176ca0f (patch) | |
| tree | 9bf4f712f722287233f9e28041d9e22b07bc2692 | |
| parent | 6efee9c079eecf025384228763982eecd935c2f8 (diff) | |
| parent | 6dbd3d7a59748c301cad50685e3940fbcdf37f61 (diff) | |
Merge "Add virtual dtor for virtual classes"
| -rw-r--r-- | tools/aapt2/filter/AbiFilter.h | 2 | ||||
| -rw-r--r-- | tools/aapt2/filter/Filter.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/tools/aapt2/filter/AbiFilter.h b/tools/aapt2/filter/AbiFilter.h index d875cb2b127b..2832711efb2c 100644 --- a/tools/aapt2/filter/AbiFilter.h +++ b/tools/aapt2/filter/AbiFilter.h @@ -33,6 +33,8 @@ namespace aapt { */ class AbiFilter : public IPathFilter { public: + virtual ~AbiFilter() = default; + /** Factory method to create a filter from a list of configuration::Abi. */ static std::unique_ptr<AbiFilter> FromAbiList(const std::vector<configuration::Abi>& abi_list); diff --git a/tools/aapt2/filter/Filter.h b/tools/aapt2/filter/Filter.h index d737dc92e87b..f932f9ccc82e 100644 --- a/tools/aapt2/filter/Filter.h +++ b/tools/aapt2/filter/Filter.h @@ -27,7 +27,7 @@ namespace aapt { /** A filter to be applied to a path segment. */ class IPathFilter { public: - ~IPathFilter() = default; + virtual ~IPathFilter() = default; /** Returns true if the path should be kept. */ virtual bool Keep(const std::string& path) = 0; |