summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/Slice/Util.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/Slice/Util.cpp b/cpp/src/Slice/Util.cpp
index 40c04199ac1..c957d6a445b 100644
--- a/cpp/src/Slice/Util.cpp
+++ b/cpp/src/Slice/Util.cpp
@@ -271,11 +271,11 @@ Slice::filterMcppWarnings(const string& message)
skiped = false;
string token = message.substr(lastPos, pos - lastPos);
static const string warningPrefix = "warning:";
- if(token.find_first_of(warningPrefix) != string::npos)
+ if(token.find(warningPrefix) != string::npos)
{
for(int j = 0; messages[j] != 0; ++j)
{
- if(token.find_first_of(messages[j]) != string::npos)
+ if(token.find(messages[j]) != string::npos)
{
skiped = true;
//Skip Next token.
@@ -291,7 +291,7 @@ Slice::filterMcppWarnings(const string& message)
if(!skiped)
{
- tokens.push_back(token);
+ tokens.push_back(token + "\n");
}
// Skip delimiters. Note the "not_of"
lastPos = message.find_first_not_of(delimiters, pos);