playlist editor: fix shadow warning

This commit is contained in:
Andrzej Rybczak
2014-11-07 23:53:33 +01:00
parent 7acc64979e
commit 8d9ddd5ff8

View File

@@ -175,16 +175,16 @@ void PlaylistEditor::update()
}
if (idx < Content.size())
Content.resizeList(idx);
std::string title;
std::string wtitle;
if (Config.titles_visibility)
{
title = (boost::format("Playlist content (%1%) %2%")
wtitle = (boost::format("Playlist content (%1%) %2%")
% boost::lexical_cast<std::string>(Content.size())
% (Content.size() == 1 ? "item" : "items")
).str();
title.resize(Content.getWidth());
wtitle.resize(Content.getWidth());
}
Content.setTitle(title);
Content.setTitle(wtitle);
}
Content.display();
}