diff options
| -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; |