diff options
author | Marco Bubke <marco.bubke@qt.io> | 2017-11-29 18:18:42 +0100 |
---|---|---|
committer | Marco Bubke <marco.bubke@qt.io> | 2017-12-05 10:26:47 +0000 |
commit | b045705115e451666f0ce80afa1ddeac1bcee1f1 (patch) | |
tree | fa6d74f6c4bc8dc983724a43a90c0c93b4bfe792 /src/plugins/clangrefactoring | |
parent | 21ce7386e967c83c1c88408c84c7bd1b6c143aa4 (diff) | |
download | qt-creator-b045705115e451666f0ce80afa1ddeac1bcee1f1.tar.gz |
UnitTests: Cleanup SymbolQuery test
Change-Id: Ieb4fe43c7b5cd27cc270f3c5d269c2d4812a0131
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Diffstat (limited to 'src/plugins/clangrefactoring')
-rw-r--r-- | src/plugins/clangrefactoring/symbolquery.h | 4 | ||||
-rw-r--r-- | src/plugins/clangrefactoring/symbolqueryinterface.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/clangrefactoring/symbolquery.h b/src/plugins/clangrefactoring/symbolquery.h index 7a6a7ecf9e..9286ca30bb 100644 --- a/src/plugins/clangrefactoring/symbolquery.h +++ b/src/plugins/clangrefactoring/symbolquery.h @@ -46,7 +46,7 @@ public: : m_statementFactory(statementFactory) {} - SourceLocations locationsAt(ClangBackEnd::FilePathId filePathId, int line, int utf8Column) override + SourceLocations locationsAt(ClangBackEnd::FilePathId filePathId, int line, int utf8Column) const override { ReadStatement &locationsStatement = m_statementFactory.selectLocationsForSymbolLocation; @@ -58,7 +58,7 @@ public: utf8Column); } - CppTools::Usages sourceUsagesAt(ClangBackEnd::FilePathId filePathId, int line, int utf8Column) override + CppTools::Usages sourceUsagesAt(ClangBackEnd::FilePathId filePathId, int line, int utf8Column) const override { ReadStatement &locationsStatement = m_statementFactory.selectSourceUsagesForSymbolLocation; diff --git a/src/plugins/clangrefactoring/symbolqueryinterface.h b/src/plugins/clangrefactoring/symbolqueryinterface.h index 1e0ab91592..950e0c2411 100644 --- a/src/plugins/clangrefactoring/symbolqueryinterface.h +++ b/src/plugins/clangrefactoring/symbolqueryinterface.h @@ -34,8 +34,8 @@ namespace ClangRefactoring { class SymbolQueryInterface { public: - virtual SourceLocations locationsAt(ClangBackEnd::FilePathId filePathId, int line, int utf8Column) = 0; - virtual CppTools::Usages sourceUsagesAt(ClangBackEnd::FilePathId filePathId, int line, int utf8Column) = 0; + virtual SourceLocations locationsAt(ClangBackEnd::FilePathId filePathId, int line, int utf8Column) const = 0; + virtual CppTools::Usages sourceUsagesAt(ClangBackEnd::FilePathId filePathId, int line, int utf8Column) const = 0; }; } // namespace ClangRefactoring |