Skip to content

Commit

Permalink
Fix code format
Browse files Browse the repository at this point in the history
  • Loading branch information
droidmonkey committed Mar 31, 2024
1 parent f206c3d commit 39bc0c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions src/core/Database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include <QTimer>

#ifdef _WIN32
#include <Windows.h>
#include <Windows.h>
#endif

QHash<QUuid, QPointer<Database>> Database::s_uuidMap;
Expand Down Expand Up @@ -297,9 +297,8 @@ bool Database::saveAs(const QString& filePath, SaveAction action, const QString&
QFile::setPermissions(realFilePath, QFile::ReadUser | QFile::WriteUser);
}

#ifdef _WIN32
if (isHidden)
{
#ifdef _WIN32
if (isHidden) {
SetFileAttributes(realFilePath.toStdString().c_str(), FILE_ATTRIBUTE_HIDDEN);
}
#endif
Expand Down
4 changes: 2 additions & 2 deletions tests/TestDatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
#include "util/TemporaryFile.h"

#ifdef _WIN32
#include <QFileInfo>
#include <Windows.h>
#include <QFileInfo>
#include <Windows.h>
#endif

QTEST_GUILESS_MAIN(TestDatabase)
Expand Down

0 comments on commit 39bc0c9

Please sign in to comment.