QmlProject: simplify code

Change-Id: I3cfee42b63bf840bf2ecde54c5f2d277d7a32e7c
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
Tim Jenssen
2018-02-24 18:36:58 +01:00
parent a16d712c11
commit e0c8ec8f79

View File

@@ -227,11 +227,9 @@ bool QmlProject::validProjectFile() const
QStringList QmlProject::customImportPaths() const QStringList QmlProject::customImportPaths() const
{ {
QStringList importPaths;
if (m_projectItem) if (m_projectItem)
importPaths = m_projectItem.data()->importPaths(); return m_projectItem.data()->importPaths();
return {};
return importPaths;
} }
bool QmlProject::addFiles(const QStringList &filePaths) bool QmlProject::addFiles(const QStringList &filePaths)