From 536492d5f0b9f10ac76c2f58242f34b88c7a4254 Mon Sep 17 00:00:00 2001 From: PKEuS Date: Wed, 5 Sep 2012 15:34:37 +0200 Subject: [PATCH] Applied two suggestions of XhmikosR: - Added UTF8 signature to VS10 solution - Prefer prefix operator++ (cppcheck catch) --- cppcheck_vs2010.sln | 2 +- lib/checkunusedvar.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cppcheck_vs2010.sln b/cppcheck_vs2010.sln index 974d0d8db..c6972b4af 100644 --- a/cppcheck_vs2010.sln +++ b/cppcheck_vs2010.sln @@ -1,4 +1,4 @@ -Microsoft Visual Studio Solution File, Format Version 11.00 +Microsoft Visual Studio Solution File, Format Version 11.00 # Visual C++ Express 2010 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cli", "cli\cli.vcxproj", "{35CBDF51-2456-3EC3-99ED-113C30858883}" ProjectSection(ProjectDependencies) = postProject diff --git a/lib/checkunusedvar.cpp b/lib/checkunusedvar.cpp index 180095bae..d7fee1972 100644 --- a/lib/checkunusedvar.cpp +++ b/lib/checkunusedvar.cpp @@ -684,7 +684,7 @@ void CheckUnusedVar::checkFunctionVariableUsage_iterateScopes(const Scope* const checkFunctionVariableUsage_iterateScopes(*i, variables, true, usedVariables); // Scan child scope insideLoop = false; std::vector::iterator it; - for (it = usedVariables.begin(); it != usedVariables.end(); it++) { + for (it = usedVariables.begin(); it != usedVariables.end(); ++it) { variables.read((*it), tok); } tok = (*i)->classStart->link();