--- solid-6.7.0/src/tools/solid-power/solid-power.cpp.orig 2024-10-14 10:19:42.438657405 +0200 +++ solid-6.7.0/src/tools/solid-power/solid-power.cpp 2024-10-14 10:21:55.679962965 +0200 @@ -26,7 +26,7 @@ auto job = Solid::Power::isAcPlugged(this); job->exec(); - QString status = job->isPlugged() ? "yes" : "no"; + QString status = job->isPlugged() ? QLatin1String("yes") : QLatin1String("no"); sCout << "is AC plugged:\t" << status << Qt::endl; } @@ -37,7 +37,7 @@ connect(power, &Power::acPluggedChanged, [](bool plugged) { QTextStream lOut(stdout); - QString status = plugged ? "yes" : "no"; + QString status = plugged ? QLatin1String("yes") : QLatin1String("no"); lOut << "\tAC plugged changed:\t" << status << Qt::endl; }); --- solid-6.7.0/src/tools/solid-power/main.cpp.orig 2024-10-14 10:06:30.172840937 +0200 +++ solid-6.7.0/src/tools/solid-power/main.cpp 2024-10-14 10:19:03.459568017 +0200 @@ -21,9 +21,9 @@ QCommandLineParser parser; parser.setApplicationDescription(QCoreApplication::translate("solid-power", "Tool to know and set the power management state of your device")); parser.addHelpOption(); - parser.addPositionalArgument("command", QCoreApplication::translate("solid-power", "Command to execute")); + parser.addPositionalArgument(QLatin1String("command"), QCoreApplication::translate("solid-power", "Command to execute")); - QCommandLineOption commands("commands", QCoreApplication::translate("solid-power", "Show available commands")); + QCommandLineOption commands(QLatin1String("commands"), QCoreApplication::translate("solid-power", "Show available commands")); parser.addOption(commands); parser.process(app);