forked from qt-creator/qt-creator
QmlJS: do file name checks with platform independent functions
this fix the polluted output while QtQuickDesigner is opened Change-Id: Icba0d76ff25ae720b5e3b3ce8cc5cecc45181241 Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
This commit is contained in:
@@ -406,8 +406,10 @@ void QrcParserPrivate::collectResourceFilesForSourceFile(const QString &sourceFi
|
||||
QStringList *results,
|
||||
const QLocale *locale) const
|
||||
{
|
||||
QTC_CHECK(sourceFile.startsWith(QLatin1Char('/')));
|
||||
QTC_CHECK(!sourceFile.endsWith(QLatin1Char('/')));
|
||||
// TODO: use FileName from fileutils for file pathes
|
||||
QTC_CHECK(QFileInfo(sourceFile).isFile());
|
||||
QTC_CHECK(QFileInfo(sourceFile).isAbsolute());
|
||||
|
||||
QStringList langs = allUiLanguages(locale);
|
||||
SMap::const_iterator file = m_files.find(sourceFile);
|
||||
if (file == m_files.end())
|
||||
|
Reference in New Issue
Block a user