GIT_SILENT: use KLocalizedString::setApplicationDomain(QByteArrayLiteral => saving one deep data copy

master
Laurent Montel 11 months ago
parent 19f7d2a8ba
commit 465499d3a7

@ -20,7 +20,7 @@
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
KLocalizedString::setApplicationDomain("kwin"); KLocalizedString::setApplicationDomain(QByteArrayLiteral("kwin"));
qputenv("QT_QPA_PLATFORM", QByteArrayLiteral("xcb")); qputenv("QT_QPA_PLATFORM", QByteArrayLiteral("xcb"));
QApplication app(argc, argv); QApplication app(argc, argv);
QApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("dialog-warning"))); QApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("dialog-warning")));

@ -25,7 +25,7 @@ int main(int argc, char **argv)
QCoreApplication::setApplicationName(QStringLiteral("kwin-applywindowdecoration")); QCoreApplication::setApplicationName(QStringLiteral("kwin-applywindowdecoration"));
QCoreApplication::setApplicationVersion(QStringLiteral("1.0")); QCoreApplication::setApplicationVersion(QStringLiteral("1.0"));
QCoreApplication::setOrganizationDomain(QStringLiteral("kde.org")); QCoreApplication::setOrganizationDomain(QStringLiteral("kde.org"));
KLocalizedString::setApplicationDomain("kwin-applywindowdecoration"); KLocalizedString::setApplicationDomain(QByteArrayLiteral("kwin-applywindowdecoration"));
QCommandLineParser *parser = new QCommandLineParser; QCommandLineParser *parser = new QCommandLineParser;
parser->addHelpOption(); parser->addHelpOption();

@ -233,7 +233,7 @@ void Application::setupMalloc()
void Application::setupLocalizedString() void Application::setupLocalizedString()
{ {
KLocalizedString::setApplicationDomain("kwin"); KLocalizedString::setApplicationDomain(QByteArrayLiteral("kwin"));
} }
void Application::createWorkspace() void Application::createWorkspace()

Loading…
Cancel
Save