From 58f585b6e53eb31d056f29519aa4119a09cdb4f1 Mon Sep 17 00:00:00 2001 From: lundberg Date: Mon, 19 Mar 2018 10:11:06 -0500 Subject: [PATCH] Fix variable-hides-variable --- src/image.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/image.cpp b/src/image.cpp index 07a52f1cc5a..475aae7f8e4 100644 --- a/src/image.cpp +++ b/src/image.cpp @@ -647,8 +647,8 @@ static surface load_image_sub_file(const image::locator& loc) std::ostringstream ss; ss << "\n"; - for(const std::string& mod : utils::parenthetical_split(loc.get_modifications(), '~')) { - ss << "\t" << mod << "\n"; + for(const std::string& mod2 : utils::parenthetical_split(loc.get_modifications(), '~')) { + ss << "\t" << mod2 << "\n"; } ERR_CFG << "Failed to apply a modification to an image:\n" @@ -1464,8 +1464,8 @@ static texture create_texture_from_sub_file(const image::locator& loc) std::ostringstream ss; ss << "\n"; - for(const std::string& mod : utils::parenthetical_split(loc.get_modifications(), '~')) { - ss << "\t" << mod << "\n"; + for(const std::string& mod2 : utils::parenthetical_split(loc.get_modifications(), '~')) { + ss << "\t" << mod2 << "\n"; } ERR_CFG << "Failed to apply a modification to an image:\n"