OSDN Git Service

C++ editor: Fix follow symbol for member functions
authorLeandro Melo <leandro.melo@nokia.com>
Fri, 8 Jul 2011 11:49:22 +0000 (13:49 +0200)
committerLeandro T. C. Melo <leandro.melo@nokia.com>
Fri, 8 Jul 2011 12:22:05 +0000 (14:22 +0200)
commitb260bf1e733cb812ad14b99244a8aa6996bbd3b7
treeaacdf7c9500c987cbb4f6b26ac83782243724e61
parentb4b9ba7e2a98ff0cd711180ca768594dba468caf
C++ editor: Fix follow symbol for member functions

Fix a regression introduced by ad53fa42b03cb7f3237bd81c4bd92f462d8ec9da
in which follow symbol takes you to the function declaration (instead
of to the type) for situations like the one below (the | indicates the
cursor):

void Ty|pe::function() {}

Change-Id: Iffd15b23bb0cd67eca5965cb22d9b60c4d024fb7
Reviewed-on: http://codereview.qt.nokia.com/1375
Reviewed-by: Erik Verbruggen <erik.verbruggen@nokia.com>
src/plugins/cppeditor/cppeditor.cpp