From fa9b2130f43547be7e4698b8d95a23155c5d3ee1 Mon Sep 17 00:00:00 2001 From: ConfuSomu Date: Fri, 26 Jan 2024 13:52:47 -0500 Subject: Use QStringLiteral in some places This should provide a light performance improvement as the QString is built at compile time, with the generated data being stored in the read-only segment of the built object file. --- src/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 16686c4..7789cf4 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -70,7 +70,7 @@ void MainWindow::act_command_line(CommandLineParsedOptions &options, QCommandLin QMessageBox::critical(this, tr("Command line"), tr("The passed command line is incorrect and will be ignored.\nMore information: %1").arg(options.error_message)); exit(EXIT_FAILURE); break; case CommandLineHelpRequested: - QMessageBox::information(this, QGuiApplication::applicationDisplayName(), "
" + parser.helpText() + "
"); exit(EXIT_SUCCESS); + QMessageBox::information(this, QGuiApplication::applicationDisplayName(), QStringLiteral("
%1
").arg(parser.helpText())); exit(EXIT_SUCCESS); break; case CommandLineVersionRequested: on_actionAbout_triggered(true); exit(EXIT_SUCCESS); -- cgit v1.2.3-54-g00ecf