diff options
author | Christian Kamm <christian.d.kamm@nokia.com> | 2011-09-08 08:49:01 +0200 |
---|---|---|
committer | Christian Kamm <christian.d.kamm@nokia.com> | 2011-09-08 10:05:22 +0200 |
commit | 107544bd7b91725f11ad794f46eb1ba93b738b6f (patch) | |
tree | bfd8a0a845007f64b25f4eb9253cc8dccc843bef /src/plugins/cpptools/insertionpointlocator.cpp | |
parent | daf6f5fff0c767d477d3b3326a2326e3b452cd12 (diff) | |
download | qt-creator-107544bd7b91725f11ad794f46eb1ba93b738b6f.tar.gz |
C++: Set endOffset of Function symbols even if skipping bodies.
Fixes insert-definition-from-declaration when the source file was not
yet opened in an editor.
Change-Id: I4263113390ae4fbe9d4641104b5cb43373ddc5a4
Reviewed-on: http://codereview.qt-project.org/4394
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
Diffstat (limited to 'src/plugins/cpptools/insertionpointlocator.cpp')
-rw-r--r-- | src/plugins/cpptools/insertionpointlocator.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/plugins/cpptools/insertionpointlocator.cpp b/src/plugins/cpptools/insertionpointlocator.cpp index 3cd4027144..cee3784433 100644 --- a/src/plugins/cpptools/insertionpointlocator.cpp +++ b/src/plugins/cpptools/insertionpointlocator.cpp @@ -548,7 +548,6 @@ static InsertionLocation nextToSurroundingDefinitions(Declaration *declaration, return InsertionLocation(definition->fileName(), prefix, suffix, line, column); } -/// Currently, we return the end of fileName.cpp QList<InsertionLocation> InsertionPointLocator::methodDefinition( Declaration *declaration) const { |