diff options
| author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-07-03 18:41:31 +0200 |
|---|---|---|
| committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-07-06 09:19:20 +0200 |
| commit | 45e12ccb4297d2099e2de5c32bd14f9d3bfe3aa6 (patch) | |
| tree | 66f419a08a503b5f9f84b222ec29b63e1a23c773 /src/libs/cplusplus/CppDocument.cpp | |
| parent | 5d888caeb9f7b554827475227c3fc207b4f4b8da (diff) | |
| download | qt-creator-45e12ccb4297d2099e2de5c32bd14f9d3bfe3aa6.tar.gz | |
Fixed scope calculation in code completion.
Diffstat (limited to 'src/libs/cplusplus/CppDocument.cpp')
| -rw-r--r-- | src/libs/cplusplus/CppDocument.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libs/cplusplus/CppDocument.cpp b/src/libs/cplusplus/CppDocument.cpp index bbf3eac045..94832cc142 100644 --- a/src/libs/cplusplus/CppDocument.cpp +++ b/src/libs/cplusplus/CppDocument.cpp @@ -94,7 +94,7 @@ protected: unsigned endLine, endColumn; _unit->getPosition(symbol->endOffset(), &endLine, &endColumn); - if (_line < endLine || (_line == endLine && _column < endColumn)) + if (_line < endLine || (_line == endLine && _column <= endColumn)) _scope = scope; } } @@ -148,6 +148,7 @@ protected: { return process(symbol); } }; + class DocumentDiagnosticClient : public DiagnosticClient { enum { MAX_MESSAGE_COUNT = 10 }; |
