From f843aff9d268559f5c9fda361a471aaa1eca68cf Mon Sep 17 00:00:00 2001 From: Shane Carr Date: Wed, 20 Mar 2019 17:24:11 -0700 Subject: [PATCH] ICU-20507 Adding virtual destructor to PathFilter --- icu4c/source/tools/genrb/filterrb.cpp | 3 +++ icu4c/source/tools/genrb/filterrb.h | 2 ++ 2 files changed, 5 insertions(+) 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. * -- 2.40.0