From b69fedf70b68674b960eb868ff016c25fb9a3d3c Mon Sep 17 00:00:00 2001 From: Lucas Manuel Rodriguez Date: Tue, 28 Jan 2014 23:16:29 -0300 Subject: [PATCH] Fix '-Wshadow' warning (from 'Fixed #5423' commit) --- lib/tokenlist.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/tokenlist.cpp b/lib/tokenlist.cpp index 054459012..f8ecd2e3a 100644 --- a/lib/tokenlist.cpp +++ b/lib/tokenlist.cpp @@ -300,13 +300,13 @@ bool TokenList::createTokens(std::istream &code, const std::string& file0) // Update the current line number lineno = row; - std::string line; - if (std::getline(fiss, line) && line.length() > 4U) { + std::string line2; + if (std::getline(fiss, line2) && line2.length() > 4U) { // _"file_name" -> file_name - line = line.substr(2, line.length() - 3); + line2 = line2.substr(2, line2.length() - 3); // Update the current file - FileIndex = appendFileIfNew(line); + FileIndex = appendFileIfNew(line2); } } else ++lineno;