@@ -28,7 +28,7 @@ class LoginRequestPrivate
2828public:
2929 LoginRequestPrivate (DeviceInfo deviceInfo, AccountManagerPrivateReplica *replica);
3030 DeviceInfo device;
31- bool acted;
31+ bool acted = false ;
3232
3333 QPointer<AccountManagerPrivateReplica> replica;
3434};
@@ -49,26 +49,26 @@ using namespace QtDataSync;
4949// ------------- AccountManager Implementation -------------
5050
5151AccountManager::AccountManager (QObject *parent) :
52- AccountManager( DefaultSetup, parent)
52+ AccountManager{ DefaultSetup, parent}
5353{}
5454
5555AccountManager::AccountManager (const QString &setupName, QObject *parent) :
56- QObject( parent) ,
57- d( new AccountManagerPrivateHolder())
56+ QObject{ parent} ,
57+ d{ new AccountManagerPrivateHolder ()}
5858{
5959 initReplica (setupName);
6060}
6161
6262AccountManager::AccountManager (QRemoteObjectNode *node, QObject *parent) :
63- QObject( parent) ,
64- d( new AccountManagerPrivateHolder())
63+ QObject{ parent} ,
64+ d{ new AccountManagerPrivateHolder ()}
6565{
6666 initReplica (node);
6767}
6868
6969AccountManager::AccountManager (QObject *parent, void *) :
70- QObject( parent) ,
71- d( new AccountManagerPrivateHolder())
70+ QObject{ parent} ,
71+ d{ new AccountManagerPrivateHolder ()}
7272{} // No init
7373
7474void AccountManager::initReplica (const QString &setupName)
@@ -288,7 +288,7 @@ void AccountManager::loginRequestedImpl(const DeviceInfo &deviceInfo)
288288// ------------- LoginRequest Implementation -------------
289289
290290LoginRequest::LoginRequest (LoginRequestPrivate *d_ptr) :
291- d( d_ptr)
291+ d{ d_ptr}
292292{}
293293
294294LoginRequest::LoginRequest (const LoginRequest &other) = default;
@@ -338,19 +338,18 @@ void LoginRequest::reject()
338338
339339
340340LoginRequestPrivate::LoginRequestPrivate (DeviceInfo deviceInfo, AccountManagerPrivateReplica *replica) :
341- device(std::move(deviceInfo)),
342- acted(false ),
343- replica(replica)
341+ device{std::move (deviceInfo)},
342+ replica{replica}
344343{}
345344
346345// ------------- DeviceInfo Implementation -------------
347346
348347DeviceInfo::DeviceInfo () :
349- d( new DeviceInfoPrivate())
348+ d{ new DeviceInfoPrivate ()}
350349{}
351350
352351DeviceInfo::DeviceInfo (const QUuid &deviceId, const QString &name, const QByteArray &fingerprint) :
353- d( new DeviceInfoPrivate(deviceId, name, fingerprint))
352+ d{ new DeviceInfoPrivate (deviceId, name, fingerprint)}
354353{}
355354
356355DeviceInfo::DeviceInfo (const DeviceInfo &other) = default;
@@ -412,10 +411,10 @@ bool DeviceInfo::operator!=(const DeviceInfo &other) const
412411
413412
414413DeviceInfoPrivate::DeviceInfoPrivate (QUuid deviceId, QString name, QByteArray fingerprint) :
415- QSharedData() ,
416- deviceId( std::move(deviceId)) ,
417- name( std::move(name)) ,
418- fingerprint( std::move(fingerprint))
414+ QSharedData{} ,
415+ deviceId{ std::move (deviceId)} ,
416+ name{ std::move (name)} ,
417+ fingerprint{ std::move (fingerprint)}
419418{}
420419
421420DeviceInfoPrivate::DeviceInfoPrivate (const DeviceInfoPrivate &other) = default;
0 commit comments