Fix initialization

Initialize "mode", fix order.
This commit is contained in:
Frank Osterfeld 2016-10-31 09:38:58 +01:00
parent 2426ebe04c
commit 8d68e1929e
2 changed files with 5 additions and 4 deletions

View File

@ -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)

View File

@ -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)