ICU-20507 Adding virtual destructor to PathFilter

This commit is contained in:
Shane Carr 2019-03-20 17:24:11 -07:00 committed by Shane F. Carr
parent e57c45c5c6
commit f843aff9d2
2 changed files with 5 additions and 0 deletions

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

View 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.
*