diff --git a/hoot-core/src/main/cpp/hoot/core/algorithms/subline-matching/MaximalSublineStringMatcher.h b/hoot-core/src/main/cpp/hoot/core/algorithms/subline-matching/MaximalSublineStringMatcher.h
index a5657aa..e387efc 100644
--- a/hoot-core/src/main/cpp/hoot/core/algorithms/subline-matching/MaximalSublineStringMatcher.h
+++ b/hoot-core/src/main/cpp/hoot/core/algorithms/subline-matching/MaximalSublineStringMatcher.h
@@ -47,9 +47,8 @@ public:
static std::string className() { return "hoot::MaximalSublineStringMatcher"; }
- static int logWarnCount;
-
MaximalSublineStringMatcher();
+ virtual ~MaximalSublineStringMatcher() = default;
/**
* @throws NeedsReviewException If the multilinestring situation is too complex to handle with
@@ -73,6 +72,8 @@ public:
private:
+ static int logWarnCount;
+
// for white box testing.
friend class MaximalSublineStringMatcherTest;