Merge "Add virtual dtor for virtual classes"

This commit is contained in:
Treehugger Robot
2018-01-05 23:27:33 +00:00
committed by Gerrit Code Review
2 changed files with 3 additions and 1 deletions

View File

@@ -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);

View File

@@ -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;