From 5733c4482619567103b6d72b9f93b6e335f47db9 Mon Sep 17 00:00:00 2001 From: Arseny Maslennikov Date: Tue, 1 Aug 2017 00:38:43 +0300 Subject: [PATCH] tag_editor.cpp: Fix misleading indentation Prior to this commit GCC6 throws 2 warnings on lines 1062 and 1161 if the project is compiled with -Wmisleading-indentation. The code blocks mentioned in the related notes seem to be indented one tab too much. --- src/screens/tag_editor.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/screens/tag_editor.cpp b/src/screens/tag_editor.cpp index 571d9f5..3311131 100644 --- a/src/screens/tag_editor.cpp +++ b/src/screens/tag_editor.cpp @@ -1062,7 +1062,7 @@ void GetPatternList() while (std::getline(input, line)) if (!line.empty()) Patterns.push_back(line); - input.close(); + input.close(); } } } @@ -1164,14 +1164,14 @@ std::string ParseFilename(MPD::MutableSong &s, std::string mask, bool preview) if (*j == '_') *j = ' '; - if (!preview) - { - MPD::MutableSong::SetFunction set = IntoSetFunction(it->first); - if (set) - s.setTags(set, it->second); - } - else - result << "%" << it->first << ": " << it->second << "\n"; + if (!preview) + { + MPD::MutableSong::SetFunction set = IntoSetFunction(it->first); + if (set) + s.setTags(set, it->second); + } + else + result << "%" << it->first << ": " << it->second << "\n"; } return result.str(); } -- 2.11.4.GIT