OSDN Git Service

C++: Fix duplicate items in C++ completion for Qt methods
authorLeandro Melo <leandro.melo@nokia.com>
Thu, 8 Sep 2011 12:01:18 +0000 (14:01 +0200)
committerLeandro T. C. Melo <leandro.melo@nokia.com>
Thu, 8 Sep 2011 12:53:54 +0000 (14:53 +0200)
commita1fa169219423641e65f81e3fbc27f0f9fb84dd5
tree4aaec282e679a12ce375860aae418584c1c42a9b
parentd6e46f7a843180b71a7a61028e4a34c7c4577bf6
C++: Fix duplicate items in C++ completion for Qt methods

In the old code completion engine items were created on the stack
and passed around by value. With the refactoring of the code assist
API they became heap objects manipulated through pointers. This
patch fixes one reminiscence not caught during the refactoring
in which the same actual pointer was being used more than once to
be appended on the list.

Change-Id: I2009fb0b6aa18df57aa5ca9bde0591536ca2cd74
Reviewed-on: http://codereview.qt-project.org/4444
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
src/plugins/cpptools/cppcompletionassist.cpp