Commit d5d1aed2 authored by hjk's avatar hjk
Browse files

BlackBerry: Work around over-eager -Wmaybe-uninitialized



Change-Id: I701d01a935bdbb65808de65cf2a994a5d68cf1d4
Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
parent f1b90c1e
......@@ -89,22 +89,22 @@ SetupItem::SetupItem(const QString &desc, QWidget *parent)
void SetupItem::set(Status status, const QString &message, const QString &fixText)
{
const char *icon;
QString icon;
switch (status) {
case Ok:
icon = Qnx::Constants::QNX_OK_ICON;
icon = QLatin1String(Qnx::Constants::QNX_OK_ICON);
break;
case Info:
icon = Core::Constants::ICON_INFO;
icon = QLatin1String(Core::Constants::ICON_INFO);
break;
case Warning:
icon = Core::Constants::ICON_WARNING;
icon = QLatin1String(Core::Constants::ICON_WARNING);
break;
case Error:
icon = Core::Constants::ICON_ERROR;
icon = QLatin1String(Core::Constants::ICON_ERROR);
break;
}
m_icon->setPixmap(QPixmap(QLatin1String(icon)));
m_icon->setPixmap(QPixmap(icon));
m_label->setText(message);
m_button->setVisible(!fixText.isEmpty());
m_button->setText(fixText);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment