SdkPersistentSettings: Fix build

Amends bb4d9c92e7

Change-Id: If20b80f30d87b1be8f606cab402c5a220fa68d07
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Jarek Kobus
2023-03-06 16:00:26 +01:00
parent e38b817fc0
commit c26db7a657
3 changed files with 3 additions and 1 deletions

View File

@@ -15,6 +15,7 @@
#include "settings.h" #include "settings.h"
#include <QDir>
#include <QLoggingCategory> #include <QLoggingCategory>
#include <QRegularExpression> #include <QRegularExpression>

View File

@@ -15,6 +15,7 @@
#include <QTest> #include <QTest>
#endif #endif
#include <QDir>
#include <QLoggingCategory> #include <QLoggingCategory>
#include <QRegularExpression> #include <QRegularExpression>

View File

@@ -367,7 +367,7 @@ SdkFileSaver::SdkFileSaver(const QString &filePath, QIODevice::OpenMode mode)
{ {
m_filePath = filePath; m_filePath = filePath;
// Workaround an assert in Qt -- and provide a useful error message, too: // Workaround an assert in Qt -- and provide a useful error message, too:
#if Q_OS_WIN #ifdef Q_OS_WIN
// Taken from: https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx // Taken from: https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx
static const QStringList reservedNames static const QStringList reservedNames
= {"CON", "PRN", "AUX", "NUL", = {"CON", "PRN", "AUX", "NUL",