Skip to content

Commit bd936d6

Browse files
committed
Build fixes for disabled implicit string casts
1 parent bdb0732 commit bd936d6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

gnomekeyring.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ GnomeKeyring::gpointer GnomeKeyring::delete_network_password( const gchar* user,
6363
}
6464

6565
GnomeKeyring::GnomeKeyring()
66-
: QLibrary("gnome-keyring", 0)
66+
: QLibrary(QLatin1String("gnome-keyring"), 0)
6767
{
6868
static const PasswordSchema schema = {
6969
ITEM_NETWORK_PASSWORD,

keychain_unix.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ enum DesktopEnvironment {
4444
// licensed under BSD, see base/nix/xdg_util.cc
4545

4646
static DesktopEnvironment getKdeVersion() {
47-
QString value = qgetenv("KDE_SESSION_VERSION");
47+
QByteArray value = qgetenv("KDE_SESSION_VERSION");
4848
if ( value == "5" ) {
4949
return DesktopEnv_Plasma5;
5050
} else if (value == "4" ) {
@@ -371,11 +371,11 @@ void WritePasswordJobPrivate::scheduledStart() {
371371

372372
switch(mode) {
373373
case JobPrivate::Text:
374-
type = "plaintext";
374+
type = QLatin1String("plaintext");
375375
password = data;
376376
break;
377377
default:
378-
type = "base64";
378+
type = QLatin1String("base64");
379379
password = data.toBase64();
380380
break;
381381
}

0 commit comments

Comments
 (0)