mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2025-04-21 12:27:27 +03:00
Check for empty strings using empty() instead of comparing to ""
This commit is contained in:
@@ -36,7 +36,7 @@ SettingsDialog::SettingsDialog(
|
||||
, ts(ts_)
|
||||
, text(text_)
|
||||
{
|
||||
if (icon != "" && gmenu2x->sc[icon] != NULL) {
|
||||
if (!icon.empty() && gmenu2x->sc[icon] != NULL) {
|
||||
this->icon = icon;
|
||||
} else {
|
||||
this->icon = "icons/generic.png";
|
||||
|
||||
Reference in New Issue
Block a user