Browse Source

fix: add default return in Widget::getStatusIconPath to fix warning

Fixes warning produced with `-Werror=return-type` on GCC 5.4.0.
reviewable/pr4789/r1
Zetok Zalbavar 8 years ago
parent
commit
8a9c34d888
No known key found for this signature in database
GPG Key ID: C953D3880212068A
  1. 2
      src/widget/widget.cpp

2
src/widget/widget.cpp

@ -2191,7 +2191,9 @@ QString Widget::getStatusIconPath(Status status) @@ -2191,7 +2191,9 @@ QString Widget::getStatusIconPath(Status status)
case Status::Offline:
return ":/img/status/dot_offline.svg";
}
qWarning() << "Status unknown";
assert(false);
return QString{};
}
// Preparing needed to set correct size of icons for GTK tray backend

Loading…
Cancel
Save