1
0
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:
Maarten ter Huurne
2013-08-16 09:16:04 +02:00
parent 8472acc26c
commit 6c80a663e1
9 changed files with 44 additions and 39 deletions

View File

@@ -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";