diff options
author | hjk <qtc-committer@nokia.com> | 2011-02-04 09:47:35 +0100 |
---|---|---|
committer | hjk <qtc-committer@nokia.com> | 2011-02-04 12:45:32 +0100 |
commit | d87ce08880fb1158e3c4560609142d0a2768ab38 (patch) | |
tree | 4e09ea6dd569f4ca498f9525923b4ff57263f367 /src | |
parent | fb8e81dd6d8b9e6ea1b4c80101de1adb6eb170b8 (diff) | |
download | qt-creator-d87ce08880fb1158e3c4560609142d0a2768ab38.tar.gz |
qt4projectmanager: style
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/qt4projectmanager/qt4projectmanager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/qt4projectmanager/qt4projectmanager.cpp b/src/plugins/qt4projectmanager/qt4projectmanager.cpp index d2b8fcef60..f7e52b00a7 100644 --- a/src/plugins/qt4projectmanager/qt4projectmanager.cpp +++ b/src/plugins/qt4projectmanager/qt4projectmanager.cpp @@ -194,10 +194,10 @@ QString Qt4Manager::mimeType() const return QLatin1String(Qt4ProjectManager::Constants::PROFILE_MIMETYPE); } -inline void updateBoilerPlateCodeFiles(const AbstractMobileApp &app, const QString proFile) +static void updateBoilerPlateCodeFiles(const AbstractMobileApp *app, const QString proFile) { const QList<AbstractGeneratedFileInfo> updates = - app.fileUpdates(proFile); + app->fileUpdates(proFile); if (!updates.empty()) { // TODO Translate the folloing strings when we want to keep the code QString message = QLatin1String("The following files are either outdated or have been modified:"); @@ -217,7 +217,7 @@ inline void updateBoilerPlateCodeFiles(const AbstractMobileApp &app, const QStri const QString title = QLatin1String("Update of the QmlApplicationView files"); if (QMessageBox::question(0, title, message, QMessageBox::Yes | QMessageBox::No) == QMessageBox::Yes) { QString error; - if (!app.updateFiles(updates, error)) + if (!app->updateFiles(updates, error)) QMessageBox::critical(0, title, error); } } @@ -246,7 +246,7 @@ ProjectExplorer::Project *Qt4Manager::openProject(const QString &fileName) } QmlStandaloneApp app; - updateBoilerPlateCodeFiles(app, canonicalFilePath); + updateBoilerPlateCodeFiles(&app, canonicalFilePath); Qt4Project *pro = new Qt4Project(this, canonicalFilePath); return pro; |