Concate strings instead of using the QDir API to speed up the linking phase.

Reviewed-by: Christian Kamm
This commit is contained in:
Roberto Raggi
2010-09-08 15:10:35 +02:00
parent afd4e3047c
commit ba03239749
2 changed files with 7 additions and 7 deletions

View File

@@ -466,7 +466,8 @@ void ModelManager::loadPluginTypes(const QString &libraryPath, const QString &im
void ModelManager::onLoadPluginTypes(const QString &libraryPath, const QString &importPath, const QString &importUri)
{
if (m_runningQmldumps.values().contains(libraryPath))
const QString canonicalLibraryPath = QDir::cleanPath(libraryPath);
if (m_runningQmldumps.values().contains(canonicalLibraryPath))
return;
static QString qmldumpPath;
@@ -500,7 +501,7 @@ void ModelManager::onLoadPluginTypes(const QString &libraryPath, const QString &
args << importPath;
args << importUri;
process->start(qmldumpPath, args);
m_runningQmldumps.insert(process, libraryPath);
m_runningQmldumps.insert(process, canonicalLibraryPath);
}
void ModelManager::updateImportPaths()