forked from qt-creator/qt-creator
Fix some compiler warnings
Change-Id: I1ac0cbba1b47c429a752c545b1475c8d7d23c5dd Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -167,6 +167,7 @@ private :
|
|||||||
|
|
||||||
void static doStat(QFileInfo &fi)
|
void static doStat(QFileInfo &fi)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(fi)
|
||||||
// driveInfo.stat();
|
// driveInfo.stat();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2341,6 +2342,7 @@ static QString volumeName(const QString &path)
|
|||||||
item->Release();
|
item->Release();
|
||||||
return result;
|
return result;
|
||||||
#else
|
#else
|
||||||
|
Q_UNUSED(path)
|
||||||
QTC_CHECK(false);
|
QTC_CHECK(false);
|
||||||
return {};
|
return {};
|
||||||
#endif // Q_OS_WIN
|
#endif // Q_OS_WIN
|
||||||
|
|||||||
@@ -102,14 +102,6 @@ namespace Internal {
|
|||||||
|
|
||||||
enum { debugMainWindow = 0 };
|
enum { debugMainWindow = 0 };
|
||||||
|
|
||||||
static bool isQtDesignStudio()
|
|
||||||
{
|
|
||||||
QSettings *settings = Core::ICore::settings();
|
|
||||||
const QString qdsStandaloneEntry = "QML/Designer/StandAloneMode"; //entry from qml settings
|
|
||||||
|
|
||||||
return settings->value(qdsStandaloneEntry, false).toBool();
|
|
||||||
}
|
|
||||||
|
|
||||||
MainWindow::MainWindow()
|
MainWindow::MainWindow()
|
||||||
: AppMainWindow()
|
: AppMainWindow()
|
||||||
, m_coreImpl(new ICore(this))
|
, m_coreImpl(new ICore(this))
|
||||||
|
|||||||
@@ -796,10 +796,10 @@ public:
|
|||||||
Imports imports;
|
Imports imports;
|
||||||
Types types;
|
Types types;
|
||||||
SourceIds updatedSourceIds;
|
SourceIds updatedSourceIds;
|
||||||
|
SourceIds updatedFileStatusSourceIds;
|
||||||
FileStatuses fileStatuses;
|
FileStatuses fileStatuses;
|
||||||
ProjectDatas projectDatas;
|
ProjectDatas projectDatas;
|
||||||
SourceIds updatedProjectSourceIds;
|
SourceIds updatedProjectSourceIds;
|
||||||
SourceIds updatedFileStatusSourceIds;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace QmlDesigner::Storage
|
} // namespace QmlDesigner::Storage
|
||||||
|
|||||||
Reference in New Issue
Block a user