Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Workspace
Commits
aa54e5dd
Commit
aa54e5dd
authored
Nov 12, 2020
by
Alexander Lohnau
💬
Browse files
Fix -Wclazy-qstring-arg warnings
parent
fda6d411
Changes
3
Hide whitespace changes
Inline
Side-by-side
kcms/krdb/krdb.cpp
View file @
aa54e5dd
...
...
@@ -296,7 +296,7 @@ static void createGtkrc( const QPalette& cg, bool exportGtkTheme, const QString&
if
(
!
exist_gtkrc
)
{
QString
gtk2ThemeFilename
;
gtk2ThemeFilename
=
QStringLiteral
(
"%1/.themes/%2/gtk-2.0/gtkrc"
).
arg
(
QDir
::
homePath
()
).
arg
(
gtkStyle
);
gtk2ThemeFilename
=
QStringLiteral
(
"%1/.themes/%2/gtk-2.0/gtkrc"
).
arg
(
QDir
::
homePath
()
,
gtkStyle
);
if
(
!
QFile
::
exists
(
gtk2ThemeFilename
))
{
QStringList
gtk2ThemePath
;
gtk2ThemeFilename
.
clear
();
...
...
@@ -306,7 +306,7 @@ static void createGtkrc( const QPalette& cg, bool exportGtkTheme, const QString&
gtk2ThemePath
.
removeDuplicates
();
for
(
int
i
=
0
;
i
<
gtk2ThemePath
.
size
();
++
i
)
{
gtk2ThemeFilename
=
QStringLiteral
(
"%1/themes/%2/gtk-2.0/gtkrc"
).
arg
(
gtk2ThemePath
.
at
(
i
)
).
arg
(
gtkStyle
);
gtk2ThemeFilename
=
QStringLiteral
(
"%1/themes/%2/gtk-2.0/gtkrc"
).
arg
(
gtk2ThemePath
.
at
(
i
)
,
gtkStyle
);
if
(
QFile
::
exists
(
gtk2ThemeFilename
))
break
;
else
...
...
runners/bookmarks/tests/testchromebookmarks.cpp
View file @
aa54e5dd
...
...
@@ -39,8 +39,8 @@ void TestChromeBookmarks::bookmarkFinderShouldFindEachProfileDirectory()
QList
<
Profile
>
profiles
=
findChrome
.
find
();
QCOMPARE
(
profiles
.
size
(),
2
);
QCOMPARE
(
profiles
[
0
].
path
(),
profileTemplate
.
arg
(
"chromium"
).
arg
(
"Default"
));
QCOMPARE
(
profiles
[
1
].
path
(),
profileTemplate
.
arg
(
"chromium"
).
arg
(
"Profile 1"
));
QCOMPARE
(
profiles
[
0
].
path
(),
profileTemplate
.
arg
(
"chromium"
,
"Default"
));
QCOMPARE
(
profiles
[
1
].
path
(),
profileTemplate
.
arg
(
"chromium"
,
"Profile 1"
));
}
void
TestChromeBookmarks
::
bookmarkFinderShouldReportNoProfilesOnErrors
()
...
...
runners/services/autotests/servicerunnertest.cpp
View file @
aa54e5dd
...
...
@@ -199,13 +199,13 @@ void ServiceRunnerTest::testForeignAppsOutscoreKCMs()
// KDE app should be >= non-KDE app
QVERIFY2
(
virtThingsRelevance
>=
virtManRelevance
,
qPrintable
(
QStringLiteral
(
"%1 >= %2"
).
arg
(
virtThingsRelevance
.
value
()
).
arg
(
virtManRelevance
.
value
())));
qPrintable
(
QStringLiteral
(
"%1 >= %2"
).
arg
(
virtThingsRelevance
.
value
()
,
virtManRelevance
.
value
())));
// KDE app strictly greater KDE kcm
QVERIFY2
(
virtThingsRelevance
>
kcmRelevance
,
qPrintable
(
QStringLiteral
(
"%1 > %2"
).
arg
(
virtThingsRelevance
.
value
()
).
arg
(
kcmRelevance
.
value
())));
qPrintable
(
QStringLiteral
(
"%1 > %2"
).
arg
(
virtThingsRelevance
.
value
()
,
kcmRelevance
.
value
())));
// non-KDE app also strictly greater (because it is an app)
QVERIFY2
(
virtManRelevance
>
kcmRelevance
,
qPrintable
(
QStringLiteral
(
"%1 > %2"
).
arg
(
virtManRelevance
.
value
()
).
arg
(
kcmRelevance
.
value
())));
qPrintable
(
QStringLiteral
(
"%1 > %2"
).
arg
(
virtManRelevance
.
value
()
,
kcmRelevance
.
value
())));
}
void
ServiceRunnerTest
::
testINotifyUsage
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment