summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/projectfilewizardextension.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2012-11-21 21:47:17 +0200
committerhjk <qthjk@ovi.com>2012-11-22 08:32:44 +0100
commit7fa69afa6cd2b63fa3759d9b590a67433622bd8f (patch)
tree62e1a8f8c89496e1e7d2b6b4b14434f135580364 /src/plugins/projectexplorer/projectfilewizardextension.cpp
parent7d36034f0376c27f68006090cc514256fcf9c59d (diff)
downloadqt-creator-7fa69afa6cd2b63fa3759d9b590a67433622bd8f.tar.gz
Use Core::Id for language
Change-Id: I0077558e9e2cf5aa06ac921cb45224e29aa85c9b Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/plugins/projectexplorer/projectfilewizardextension.cpp')
-rw-r--r--src/plugins/projectexplorer/projectfilewizardextension.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/projectexplorer/projectfilewizardextension.cpp b/src/plugins/projectexplorer/projectfilewizardextension.cpp
index bf30a98c86..6900eac0f3 100644
--- a/src/plugins/projectexplorer/projectfilewizardextension.cpp
+++ b/src/plugins/projectexplorer/projectfilewizardextension.cpp
@@ -524,9 +524,9 @@ bool ProjectFileWizardExtension::processVersionControl(const QList<Core::Generat
return true;
}
-static TextEditor::ICodeStylePreferences *codeStylePreferences(ProjectExplorer::Project *project, const QString &languageId)
+static TextEditor::ICodeStylePreferences *codeStylePreferences(ProjectExplorer::Project *project, Core::Id languageId)
{
- if (languageId.isEmpty())
+ if (!languageId.isValid())
return 0;
if (project)
@@ -542,9 +542,9 @@ void ProjectFileWizardExtension::applyCodeStyle(Core::GeneratedFile *file) const
const Core::MimeDatabase *mdb = Core::ICore::mimeDatabase();
Core::MimeType mt = mdb->findByFile(QFileInfo(file->path()));
- const QString languageId = TextEditor::TextEditorSettings::instance()->languageId(mt.type());
+ Core::Id languageId = TextEditor::TextEditorSettings::instance()->languageId(mt.type());
- if (languageId.isEmpty())
+ if (!languageId.isValid())
return; // don't modify files like *.ui *.pro
ProjectNode *project = 0;