summaryrefslogtreecommitdiff
path: root/src/plugins/qmljstools/qmljsrefactoringchanges.cpp
diff options
context:
space:
mode:
authorFawzi Mohamed <fawzi.mohamed@digia.com>2013-10-16 14:59:28 +0200
committerFawzi Mohamed <fawzi.mohamed@digia.com>2013-10-23 00:35:16 +0200
commit0a4310d3148861062b9679e1415197b3a883164f (patch)
treebdc93dcc43e1ada315aca79883e1e890327d5faa /src/plugins/qmljstools/qmljsrefactoringchanges.cpp
parentab71755326eeee537fb9eee157d7fffcd54cb723 (diff)
downloadqt-creator-0a4310d3148861062b9679e1415197b3a883164f.tar.gz
qmljs: added qmljsconstants.h
Moved Document::Language, Import::Type and StaticAnalysis::Severity enums to qmljsconstants.h and renamed values removing the redundant part. Thus the effective length changed little or improved (Document::QmlLanguage => Language::Qml). The separate file allows better reuse of enum values without introducing circular dependencies. Change-Id: I5186d7c04f5d3f6c289068b919be5ff1ff118326 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
Diffstat (limited to 'src/plugins/qmljstools/qmljsrefactoringchanges.cpp')
-rw-r--r--src/plugins/qmljstools/qmljsrefactoringchanges.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmljstools/qmljsrefactoringchanges.cpp b/src/plugins/qmljstools/qmljsrefactoringchanges.cpp
index 827a3fddde..06381b313b 100644
--- a/src/plugins/qmljstools/qmljsrefactoringchanges.cpp
+++ b/src/plugins/qmljstools/qmljsrefactoringchanges.cpp
@@ -123,7 +123,7 @@ QmlJSRefactoringFile::QmlJSRefactoringFile(const QString &fileName, const QShare
: RefactoringFile(fileName, data)
{
// the RefactoringFile is invalid if its not for a file with qml or js code
- if (languageOfFile(fileName) == Document::UnknownLanguage)
+ if (languageOfFile(fileName) == Language::Unknown)
m_fileName.clear();
}