]> granicus.if.org Git - icu/commitdiff
ICU-20507 Adding virtual destructor to PathFilter
authorShane Carr <shane@unicode.org>
Thu, 21 Mar 2019 00:24:11 +0000 (17:24 -0700)
committerShane F. Carr <shane@unicode.org>
Fri, 22 Mar 2019 20:51:19 +0000 (13:51 -0700)
icu4c/source/tools/genrb/filterrb.cpp
icu4c/source/tools/genrb/filterrb.h

index f0dbebc0b72e9040542b7ff9e2deaa1ea4f00e00..d62d185d773224d371fb0eaf17b564660475a4f8 100644 (file)
@@ -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;
index ce9c1c2d10dab207333a63b19def37c37376b8cd..cf5476604191770f41a9a0c82c33525eea331cb2 100644 (file)
@@ -51,6 +51,8 @@ public:
 
     static const char* kEInclusionNames[];
 
+    virtual ~PathFilter();
+
     /**
      * Returns an EInclusion on whether or not the given path should be included.
      *