From d526dda89545f4ae6b5faf9ce4f84a33c13a83b2 Mon Sep 17 00:00:00 2001 From: Dimitar Dobrev Date: Fri, 9 Aug 2013 14:02:35 +0300 Subject: [PATCH] Replaced a range-based for to ensure VS C++ 2010 compliance. Signed-off-by: Dimitar Dobrev --- src/Parser/Parser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Parser/Parser.cpp b/src/Parser/Parser.cpp index 3bf549e6..219527d1 100644 --- a/src/Parser/Parser.cpp +++ b/src/Parser/Parser.cpp @@ -179,8 +179,8 @@ void Parser::SetupHeader() if (!Opts->NoBuiltinIncludes) { std::vector SystemDirs = GetWindowsSystemIncludeDirs(); - for(auto Path : SystemDirs) - HSOpts.AddPath(Path, frontend::System, /*IsFramework=*/false, + for(int i = 0; i < SystemDirs.size(); i++) + HSOpts.AddPath(SystemDirs[i], frontend::System, /*IsFramework=*/false, /*IgnoreSysRoot=*/false); }