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.
This commit is contained in:
committed by
Andrzej Rybczak
parent
d14426ffd1
commit
5733c44826
@@ -1062,7 +1062,7 @@ void GetPatternList()
|
|||||||
while (std::getline(input, line))
|
while (std::getline(input, line))
|
||||||
if (!line.empty())
|
if (!line.empty())
|
||||||
Patterns.push_back(line);
|
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 == '_')
|
if (*j == '_')
|
||||||
*j = ' ';
|
*j = ' ';
|
||||||
|
|
||||||
if (!preview)
|
if (!preview)
|
||||||
{
|
{
|
||||||
MPD::MutableSong::SetFunction set = IntoSetFunction(it->first);
|
MPD::MutableSong::SetFunction set = IntoSetFunction(it->first);
|
||||||
if (set)
|
if (set)
|
||||||
s.setTags(set, it->second);
|
s.setTags(set, it->second);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
result << "%" << it->first << ": " << it->second << "\n";
|
result << "%" << it->first << ": " << it->second << "\n";
|
||||||
}
|
}
|
||||||
return result.str();
|
return result.str();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user