forked from qt-creator/qt-creator
QmlProject: simplify code
Change-Id: I3cfee42b63bf840bf2ecde54c5f2d277d7a32e7c Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
@@ -227,11 +227,9 @@ bool QmlProject::validProjectFile() const
|
||||
|
||||
QStringList QmlProject::customImportPaths() const
|
||||
{
|
||||
QStringList importPaths;
|
||||
if (m_projectItem)
|
||||
importPaths = m_projectItem.data()->importPaths();
|
||||
|
||||
return importPaths;
|
||||
return m_projectItem.data()->importPaths();
|
||||
return {};
|
||||
}
|
||||
|
||||
bool QmlProject::addFiles(const QStringList &filePaths)
|
||||
|
Reference in New Issue
Block a user