Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/org.eclipse.etrice.runtime.cpp/src/common/debugging/MSCFilter.cpp')
-rw-r--r--runtime/org.eclipse.etrice.runtime.cpp/src/common/debugging/MSCFilter.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/runtime/org.eclipse.etrice.runtime.cpp/src/common/debugging/MSCFilter.cpp b/runtime/org.eclipse.etrice.runtime.cpp/src/common/debugging/MSCFilter.cpp
index 09d9c153b..db011e4cb 100644
--- a/runtime/org.eclipse.etrice.runtime.cpp/src/common/debugging/MSCFilter.cpp
+++ b/runtime/org.eclipse.etrice.runtime.cpp/src/common/debugging/MSCFilter.cpp
@@ -12,8 +12,6 @@
#include "common/debugging/MSCFilter.h"
#include "etStdDatatypes.h"
-#include <list>
-#include <string>
namespace etRuntime {
@@ -25,10 +23,10 @@ void MSCFilter::addFilter(FilterItem filter) {
filterList.push_back(filter);
}
-etBool MSCFilter::applyTo(const std::string& text) {
+etBool MSCFilter::applyTo(const String& text) {
if (filterList.empty())
return true; // no filters -> all messages will be logged
- std::list<FilterItem>::iterator it = filterList.begin();
+ Vector<FilterItem>::iterator it = filterList.begin();
for (; it != filterList.end(); ++it) {
if (text.compare((*it).filter) == 0)
return !(*it).exclude;
@@ -36,13 +34,13 @@ etBool MSCFilter::applyTo(const std::string& text) {
return false;
}
-std::string MSCFilter::reduceString(const std::string& string) {
+String MSCFilter::reduceString(const String& text) {
// if (filterList.size() == 1)
// //TODO: filtering with regular expression
// // return string.replaceFirst(filterList.front().filter, "");
// return string;
// else
- return string;
+ return text;
}
} /* namespace etRuntime */

Back to the top