forked from qt-creator/qt-creator
Fix warning: "Don't call QVector::first() on temporary QList/QVector"
[-Wclazy-detaching-temporary] Change-Id: I23f5cbd80bb92d3f9f1bfb5ae07493818958c5b0 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -395,7 +395,8 @@ void IosConfigurations::load()
|
||||
m_ignoreAllDevices = settings->value(ignoreAllDevicesKey, false).toBool();
|
||||
m_screenshotDir = FileName::fromString(settings->value(screenshotDirPathKey).toString());
|
||||
if (!m_screenshotDir.exists()) {
|
||||
QString defaultDir = QStandardPaths::standardLocations(QStandardPaths::PicturesLocation).first();
|
||||
QString defaultDir =
|
||||
QStandardPaths::standardLocations(QStandardPaths::PicturesLocation).constFirst();
|
||||
m_screenshotDir = FileName::fromString(defaultDir);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user