mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
- fb_generic: formatting getIconPath() using astyle
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -715,11 +715,14 @@ std::string CFrameBuffer::getIconPath(std::string icon_name, std::string file_ty
|
||||
|
||||
std::string::size_type pos = icon_name.find_last_of(".");
|
||||
if (pos != std::string::npos && file_type.empty())
|
||||
{
|
||||
if (std::find(filetypes.begin(), filetypes.end(), icon_name.substr(pos)) != filetypes.end())
|
||||
{
|
||||
icon_name = path.substr(0, pos);
|
||||
file_type = path.substr(pos + 1);
|
||||
}
|
||||
}
|
||||
|
||||
if (!file_type.empty())
|
||||
{
|
||||
filetypes.clear();
|
||||
|
Reference in New Issue
Block a user