[Pkg-owncloud-commits] [qtkeychain] 41/63: Fix initialization
Sandro Knauß
hefee at debian.org
Sat Jun 10 14:39:30 UTC 2017
This is an automated email from the git hooks/post-receive script.
hefee pushed a commit to branch master
in repository qtkeychain.
commit 8d68e1929eb4614be64e44475438b702bbf33367
Author: Frank Osterfeld <frank.osterfeld at kdab.com>
Date: Mon Oct 31 09:38:58 2016 +0100
Fix initialization
Initialize "mode", fix order.
---
keychain.cpp | 7 ++++---
keychain_p.h | 2 +-
2 files changed, 5 insertions(+), 4 deletions(-)
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)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/qtkeychain.git
More information about the Pkg-owncloud-commits
mailing list