fixed pre/post increment warings, found during selfcheck

This commit is contained in:
Ettl Martin 2011-02-13 23:57:07 +01:00
parent aacb94c427
commit d2a1d3f14a
1 changed files with 3 additions and 3 deletions

View File

@ -218,7 +218,7 @@ std::string Preprocessor::preprocessCleanupDirectives(const std::string &process
char prev = ' '; // hack to make it skip spaces between # and the directive char prev = ' '; // hack to make it skip spaces between # and the directive
code << "#"; code << "#";
std::string::const_iterator i = line.begin(); std::string::const_iterator i = line.begin();
i++; ++i;
// need space.. #if( => #if ( // need space.. #if( => #if (
bool needSpace = true; bool needSpace = true;
@ -247,7 +247,7 @@ std::string Preprocessor::preprocessCleanupDirectives(const std::string &process
// skip double whitespace between arguments // skip double whitespace between arguments
if (escapeStatus == ESC_NONE && prev == ' ' && *i == ' ') if (escapeStatus == ESC_NONE && prev == ' ' && *i == ' ')
{ {
i++; ++i;
continue; continue;
} }
// Convert #if( to "#if (" // Convert #if( to "#if ("
@ -272,7 +272,7 @@ std::string Preprocessor::preprocessCleanupDirectives(const std::string &process
{ {
prev = *i; prev = *i;
} }
i++; ++i;
} }
if (escapeStatus != ESC_NONE) if (escapeStatus != ESC_NONE)
{ {