mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-03 20:47:37 +03:00
Cleanup compiler warnings on all platforms (#10847)
Fixes #10730. Co-authored-by: Christoph Reiter <reiter.christoph@gmail.com>
This commit is contained in:
parent
af3b4074e2
commit
c3df16147d
5 changed files with 18 additions and 15 deletions
|
@ -124,10 +124,10 @@ void TestDatabase::testSaveAs()
|
|||
QCOMPARE(spyFilePathChanged.count(), 1);
|
||||
QVERIFY(QFile::exists(newDbFileName));
|
||||
#ifdef Q_OS_WIN
|
||||
QVERIFY(!QFileInfo::QFileInfo(newDbFileName).isHidden());
|
||||
QVERIFY(!QFileInfo(newDbFileName).isHidden());
|
||||
SetFileAttributes(newDbFileName.toStdString().c_str(), FILE_ATTRIBUTE_HIDDEN);
|
||||
QVERIFY2(db->saveAs(newDbFileName, Database::Atomic, QString(), &error), error.toLatin1());
|
||||
QVERIFY(QFileInfo::QFileInfo(newDbFileName).isHidden());
|
||||
QVERIFY(QFileInfo(newDbFileName).isHidden());
|
||||
#endif
|
||||
QFile::remove(newDbFileName);
|
||||
QVERIFY(!QFile::exists(newDbFileName));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue