diff options
author | Fawzi Mohamed <fawzi.mohamed@digia.com> | 2013-10-16 14:59:28 +0200 |
---|---|---|
committer | Fawzi Mohamed <fawzi.mohamed@digia.com> | 2013-10-23 00:35:16 +0200 |
commit | 0a4310d3148861062b9679e1415197b3a883164f (patch) | |
tree | bdc93dcc43e1ada315aca79883e1e890327d5faa /src/plugins/qmljstools/qmljsrefactoringchanges.cpp | |
parent | ab71755326eeee537fb9eee157d7fffcd54cb723 (diff) | |
download | qt-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.cpp | 2 |
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(); } |