Skip to content

v0.2.48..v0.2.49 changeset TagKeyContainsCriterion.h

Garret Voltz edited this page Oct 2, 2019 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/criterion/TagKeyContainsCriterion.h b/hoot-core/src/main/cpp/hoot/core/criterion/TagKeyContainsCriterion.h
index 13c2805..228b971 100644
--- a/hoot-core/src/main/cpp/hoot/core/criterion/TagKeyContainsCriterion.h
+++ b/hoot-core/src/main/cpp/hoot/core/criterion/TagKeyContainsCriterion.h
@@ -59,6 +59,9 @@ public:
   void setText(const QString& text) { _text = text; }
   void setCaseSensitive(bool caseSens) { _caseSensitive = caseSens; }
 
+  virtual QString toString() const override
+  { return QString::fromStdString(className()).remove("hoot::"); }
+
 private:
 
   QString _text;
Clone this wiki locally