forked from qt-creator/qt-creator
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:
@@ -15,6 +15,7 @@
|
||||
|
||||
#include "settings.h"
|
||||
|
||||
#include <QDir>
|
||||
#include <QLoggingCategory>
|
||||
#include <QRegularExpression>
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
#include <QTest>
|
||||
#endif
|
||||
|
||||
#include <QDir>
|
||||
#include <QLoggingCategory>
|
||||
#include <QRegularExpression>
|
||||
|
||||
|
||||
@@ -367,7 +367,7 @@ SdkFileSaver::SdkFileSaver(const QString &filePath, QIODevice::OpenMode mode)
|
||||
{
|
||||
m_filePath = filePath;
|
||||
// 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
|
||||
static const QStringList reservedNames
|
||||
= {"CON", "PRN", "AUX", "NUL",
|
||||
|
||||
Reference in New Issue
Block a user