From d2a1d3f14a3e6acaf6ca3d9e9bb3644ca6e22504 Mon Sep 17 00:00:00 2001 From: Ettl Martin Date: Sun, 13 Feb 2011 23:57:07 +0100 Subject: [PATCH] fixed pre/post increment warings, found during selfcheck --- lib/preprocessor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/preprocessor.cpp b/lib/preprocessor.cpp index 091da7ea0..fe35a7f81 100644 --- a/lib/preprocessor.cpp +++ b/lib/preprocessor.cpp @@ -218,7 +218,7 @@ std::string Preprocessor::preprocessCleanupDirectives(const std::string &process char prev = ' '; // hack to make it skip spaces between # and the directive code << "#"; std::string::const_iterator i = line.begin(); - i++; + ++i; // need space.. #if( => #if ( bool needSpace = true; @@ -247,7 +247,7 @@ std::string Preprocessor::preprocessCleanupDirectives(const std::string &process // skip double whitespace between arguments if (escapeStatus == ESC_NONE && prev == ' ' && *i == ' ') { - i++; + ++i; continue; } // Convert #if( to "#if (" @@ -272,7 +272,7 @@ std::string Preprocessor::preprocessCleanupDirectives(const std::string &process { prev = *i; } - i++; + ++i; } if (escapeStatus != ESC_NONE) {