Skip to content

v0.2.51..v0.2.52 changeset StringUtils.cpp

Garret Voltz edited this page Jan 15, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/util/StringUtils.cpp b/hoot-core/src/main/cpp/hoot/core/util/StringUtils.cpp
index 59e4b96..4c3e828 100644
--- a/hoot-core/src/main/cpp/hoot/core/util/StringUtils.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/util/StringUtils.cpp
@@ -185,4 +185,12 @@ bool StringUtils::containsSubstring(const QStringList& input, const QString& sub
   return input.filter(substring, Qt::CaseInsensitive).size() > 0;
 }
 
+void StringUtils::removeAll(QStringList& input, const QStringList& toRemove)
+{
+  for (int i = 0; i < toRemove.size(); i++)
+  {
+    input.removeAll(toRemove.at(i));
+  }
+}
+
 }
Clone this wiki locally