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;
|
const QString empty;
|
||||||
QXmlStreamReader reader(empty);
|
QXmlStreamReader reader(empty);
|
||||||
|
|
||||||
const KeeShareSettings::Key nullKey;
|
const KeeShareSettings::Key nullKey = {};
|
||||||
QVERIFY(nullKey.isNull());
|
QVERIFY(nullKey.isNull());
|
||||||
const KeeShareSettings::Key xmlKey = KeeShareSettings::Key::deserialize(reader);
|
const KeeShareSettings::Key xmlKey = KeeShareSettings::Key::deserialize(reader);
|
||||||
QVERIFY(xmlKey.isNull());
|
QVERIFY(xmlKey.isNull());
|
||||||
|
|
||||||
const KeeShareSettings::Certificate certificate;
|
const KeeShareSettings::Certificate certificate = {};
|
||||||
QVERIFY(certificate.isNull());
|
QVERIFY(certificate.isNull());
|
||||||
const KeeShareSettings::Certificate xmlCertificate = KeeShareSettings::Certificate::deserialize(reader);
|
const KeeShareSettings::Certificate xmlCertificate = KeeShareSettings::Certificate::deserialize(reader);
|
||||||
QVERIFY(xmlCertificate.isNull());
|
QVERIFY(xmlCertificate.isNull());
|
||||||
|
|
||||||
const KeeShareSettings::Own own;
|
const KeeShareSettings::Own own = {};
|
||||||
QVERIFY(own.isNull());
|
QVERIFY(own.isNull());
|
||||||
const KeeShareSettings::Own xmlOwn = KeeShareSettings::Own::deserialize(empty);
|
const KeeShareSettings::Own xmlOwn = KeeShareSettings::Own::deserialize(empty);
|
||||||
QVERIFY(xmlOwn.isNull());
|
QVERIFY(xmlOwn.isNull());
|
||||||
|
|
||||||
const KeeShareSettings::Active active;
|
const KeeShareSettings::Active active = {};
|
||||||
QVERIFY(active.isNull());
|
QVERIFY(active.isNull());
|
||||||
const KeeShareSettings::Active xmlActive = KeeShareSettings::Active::deserialize(empty);
|
const KeeShareSettings::Active xmlActive = KeeShareSettings::Active::deserialize(empty);
|
||||||
QVERIFY(xmlActive.isNull());
|
QVERIFY(xmlActive.isNull());
|
||||||
|
|
||||||
const KeeShareSettings::Foreign foreign;
|
const KeeShareSettings::Foreign foreign = {};
|
||||||
QVERIFY(foreign.certificates.isEmpty());
|
QVERIFY(foreign.certificates.isEmpty());
|
||||||
const KeeShareSettings::Foreign xmlForeign = KeeShareSettings::Foreign::deserialize(empty);
|
const KeeShareSettings::Foreign xmlForeign = KeeShareSettings::Foreign::deserialize(empty);
|
||||||
QVERIFY(xmlForeign.certificates.isEmpty());
|
QVERIFY(xmlForeign.certificates.isEmpty());
|
||||||
|
|
||||||
const KeeShareSettings::Reference reference;
|
const KeeShareSettings::Reference reference = {};
|
||||||
QVERIFY(reference.isNull());
|
QVERIFY(reference.isNull());
|
||||||
const KeeShareSettings::Reference xmlReference = KeeShareSettings::Reference::deserialize(empty);
|
const KeeShareSettings::Reference xmlReference = KeeShareSettings::Reference::deserialize(empty);
|
||||||
QVERIFY(xmlReference.isNull());
|
QVERIFY(xmlReference.isNull());
|
||||||
|
Loading…
Reference in New Issue
Block a user