From: Shane Carr Date: Thu, 21 Mar 2019 00:24:11 +0000 (-0700) Subject: ICU-20507 Adding virtual destructor to PathFilter X-Git-Tag: release-64-1~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f843aff9d268559f5c9fda361a471aaa1eca68cf;p=icu ICU-20507 Adding virtual destructor to PathFilter --- diff --git a/icu4c/source/tools/genrb/filterrb.cpp b/icu4c/source/tools/genrb/filterrb.cpp index f0dbebc0b72..d62d185d773 100644 --- a/icu4c/source/tools/genrb/filterrb.cpp +++ b/icu4c/source/tools/genrb/filterrb.cpp @@ -63,6 +63,9 @@ std::ostream& operator<<(std::ostream& out, const ResKeyPath& value) { } +PathFilter::~PathFilter() = default; + + void SimpleRuleBasedPathFilter::addRule(const std::string& ruleLine, UErrorCode& status) { if (ruleLine.empty()) { std::cerr << "genrb error: empty filter rules are not allowed" << std::endl; diff --git a/icu4c/source/tools/genrb/filterrb.h b/icu4c/source/tools/genrb/filterrb.h index ce9c1c2d10d..cf547660419 100644 --- a/icu4c/source/tools/genrb/filterrb.h +++ b/icu4c/source/tools/genrb/filterrb.h @@ -51,6 +51,8 @@ public: static const char* kEInclusionNames[]; + virtual ~PathFilter(); + /** * Returns an EInclusion on whether or not the given path should be included. *