diff options
author | Jose <jose@zeroc.com> | 2009-02-12 21:43:26 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2009-02-12 21:43:26 +0100 |
commit | 1fc5eb8f058e544b184cddce9e3bad65e561b130 (patch) | |
tree | fe0b2dde4db8556bab89a644b76eca254307cafc /cpp/src/Slice/Util.cpp | |
parent | bug 3356 - review use of AbortMarshaling in Python extension (diff) | |
download | ice-1fc5eb8f058e544b184cddce9e3bad65e561b130.tar.bz2 ice-1fc5eb8f058e544b184cddce9e3bad65e561b130.tar.xz ice-1fc5eb8f058e544b184cddce9e3bad65e561b130.zip |
Fixed 3730 - Invalid metadata, but no error message
Diffstat (limited to 'cpp/src/Slice/Util.cpp')
-rw-r--r-- | cpp/src/Slice/Util.cpp | 6 |
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); |