From 1a94b876f1b5a1b8ad8f27656d3e4ebfd4be0b44 Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Wed, 2 Dec 2015 13:58:24 +0100 Subject: [PATCH] preprocessor: Improved constness of local variable. --- lib/preprocessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/preprocessor.cpp b/lib/preprocessor.cpp index ec082be5d..7857364b0 100644 --- a/lib/preprocessor.cpp +++ b/lib/preprocessor.cpp @@ -1444,7 +1444,7 @@ std::list Preprocessor::getcfgs(const std::string &filedata, const // Get name of define std::string defineName(*it2); - std::string::size_type end = defineName.find_first_of("=("); + const std::string::size_type end = defineName.find_first_of("=("); if (end != std::string::npos) defineName.erase(end);