Commit fbba8e06 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix clazy warning

parent 837b1b24
......@@ -306,8 +306,8 @@ int main(int argc, char *argv[])
parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("detailederror"), i18n("'Error' message box with expandable Details field"), QStringLiteral("text> <details")));
parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("msgbox"), i18n("Message Box dialog"), QStringLiteral("text")));
parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("inputbox"), i18n("Input Box dialog"), QStringLiteral("text> <init")));
parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("imgbox"), i18n("Image Box dialog"), QLatin1String("file")));
parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("imginputbox"), i18n("Image Box Input dialog"), QLatin1String("file> <text")));
parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("imgbox"), i18n("Image Box dialog"), QStringLiteral("file")));
parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("imginputbox"), i18n("Image Box Input dialog"), QStringLiteral("file> <text")));
parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("password"), i18n("Password dialog"), QStringLiteral("text")));
parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("newpassword"), i18n("New Password dialog"), QStringLiteral("text")));
parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("textbox"), i18n("Text Box dialog"), QStringLiteral("file")));
......@@ -631,7 +631,7 @@ int main(int argc, char *argv[])
timeout);
QTimer *timer = new QTimer();
QObject::connect(timer, SIGNAL(timeout()), qApp, SLOT(quit()));
QObject::connect(popup, SIGNAL(clicked()), qApp, SLOT(quit()));
QObject::connect(popup, QOverload<>::of(&KPassivePopup::clicked), qApp, &QApplication::quit);
timer->setSingleShot(true);
timer->start(timeout);
......
......@@ -30,6 +30,7 @@
int main(int argc, char **argv)
{
QStringList rawArgs;
rawArgs.reserve(argc);
for (int i = 0; i < argc; ++i) {
rawArgs << QString::fromLocal8Bit(argv[i]);
}
......
......@@ -395,7 +395,7 @@ bool Widgets::slider(QWidget *parent, const QString &title, const QString &text,
return retcode;
}
bool Widgets::calendar(QWidget *parent, const QString &title, const QString &text, QDate &result, const QDate& defaultEntry)
bool Widgets::calendar(QWidget *parent, const QString &title, const QString &text, QDate &result, QDate defaultEntry)
{
QDialog dlg(parent);
dlg.setWindowTitle(title);
......
......@@ -37,7 +37,7 @@ bool checkList(QWidget *parent, const QString &title, const QString &text, const
bool radioBox(QWidget *parent, const QString &title, const QString &text, const QStringList &args, QString &result);
bool comboBox(QWidget *parent, const QString &title, const QString &text, const QStringList &args, const QString &defaultEntry, QString &result);
bool slider(QWidget *parent, const QString &title, const QString &test, int minValue, int maxValue, int step, int &result);
bool calendar(QWidget *parent, const QString &title, const QString &text, QDate &result, const QDate &defaultEntry);
bool calendar(QWidget *parent, const QString &title, const QString &text, QDate &result, QDate defaultEntry);
}
#endif
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