fix: lint files

This commit is contained in:
Alex
2022-08-18 15:22:25 +02:00
parent b7bd06ad8f
commit bcee4e15d3
3 changed files with 15 additions and 17 deletions

View File

@ -314,9 +314,7 @@ void Item::updateImage() {
}
Glib::RefPtr<Gdk::Pixbuf> Item::getIconPixbuf() {
if (!icon_name.empty()) {
try {
std::ifstream temp(icon_name);
if (temp.is_open()) {
@ -347,7 +345,8 @@ Glib::RefPtr<Gdk::Pixbuf> Item::getIconPixbuf() {
if (icon_name.empty()) {
spdlog::error("Item '{}': No icon name or pixmap given.", id);
} else {
spdlog::error("Item '{}': Could not find an icon named '{}' and no pixmap given.", id, icon_name);
spdlog::error("Item '{}': Could not find an icon named '{}' and no pixmap given.", id,
icon_name);
}
return getIconByName("image-missing", getScaledIconSize());