mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
More ci issues (missing initialize for const)
Fixed issues detected in TestSharing
This commit is contained in:
parent
6e25da6a19
commit
b204451d06
@ -108,32 +108,32 @@ void TestSharing::testNullObjects()
|
||||
const QString empty;
|
||||
QXmlStreamReader reader(empty);
|
||||
|
||||
const KeeShareSettings::Key nullKey;
|
||||
const KeeShareSettings::Key nullKey = {};
|
||||
QVERIFY(nullKey.isNull());
|
||||
const KeeShareSettings::Key xmlKey = KeeShareSettings::Key::deserialize(reader);
|
||||
QVERIFY(xmlKey.isNull());
|
||||
|
||||
const KeeShareSettings::Certificate certificate;
|
||||
const KeeShareSettings::Certificate certificate = {};
|
||||
QVERIFY(certificate.isNull());
|
||||
const KeeShareSettings::Certificate xmlCertificate = KeeShareSettings::Certificate::deserialize(reader);
|
||||
QVERIFY(xmlCertificate.isNull());
|
||||
|
||||
const KeeShareSettings::Own own;
|
||||
const KeeShareSettings::Own own = {};
|
||||
QVERIFY(own.isNull());
|
||||
const KeeShareSettings::Own xmlOwn = KeeShareSettings::Own::deserialize(empty);
|
||||
QVERIFY(xmlOwn.isNull());
|
||||
|
||||
const KeeShareSettings::Active active;
|
||||
const KeeShareSettings::Active active = {};
|
||||
QVERIFY(active.isNull());
|
||||
const KeeShareSettings::Active xmlActive = KeeShareSettings::Active::deserialize(empty);
|
||||
QVERIFY(xmlActive.isNull());
|
||||
|
||||
const KeeShareSettings::Foreign foreign;
|
||||
const KeeShareSettings::Foreign foreign = {};
|
||||
QVERIFY(foreign.certificates.isEmpty());
|
||||
const KeeShareSettings::Foreign xmlForeign = KeeShareSettings::Foreign::deserialize(empty);
|
||||
QVERIFY(xmlForeign.certificates.isEmpty());
|
||||
|
||||
const KeeShareSettings::Reference reference;
|
||||
const KeeShareSettings::Reference reference = {};
|
||||
QVERIFY(reference.isNull());
|
||||
const KeeShareSettings::Reference xmlReference = KeeShareSettings::Reference::deserialize(empty);
|
||||
QVERIFY(xmlReference.isNull());
|
||||
|
Loading…
Reference in New Issue
Block a user