diff --git a/keychain.cpp b/keychain.cpp index 8e738d0..90ee4eb 100644 --- a/keychain.cpp +++ b/keychain.cpp @@ -195,12 +195,13 @@ ReadPasswordJobPrivate::ReadPasswordJobPrivate(const QString &service_, ReadPass } JobPrivate::JobPrivate(const QString &service_, Job *qq) - : error( NoError ) + : q(qq) + , mode( Text ) + , error( NoError ) , service( service_ ) , autoDelete( true ) , insecureFallback( false ) - , q(qq) { - +{ } QString JobPrivate::modeToString(Mode m) diff --git a/keychain_p.h b/keychain_p.h index dc66d12..ab7f0be 100644 --- a/keychain_p.h +++ b/keychain_p.h @@ -45,8 +45,8 @@ public: static QString modeToString(Mode m); static Mode stringToMode(const QString& s); - Mode mode; Job* const q; + Mode mode; QByteArray data; #if defined(Q_OS_UNIX) && !defined(Q_OS_DARWIN) && !defined(Q_OS_ANDROID)