forked from qt-creator/qt-creator
C++ function signature: Don't try to reuse nonexistant context.
Change-Id: I890cccc25c5ba774691edee860845e22a7b7ec78 Reviewed-on: http://codereview.qt-project.org/4876 Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
This commit is contained in:
@@ -510,7 +510,7 @@ Utils::ChangeSet FunctionDeclDefLink::changes(const Snapshot &snapshot, int targ
|
||||
if (!newFunction)
|
||||
return changes;
|
||||
|
||||
const LookupContext &sourceContext = typeOfExpression.context();
|
||||
LookupContext sourceContext(sourceDocument, snapshot);
|
||||
LookupContext targetContext(targetFile->cppDocument(), snapshot);
|
||||
|
||||
Overview overview;
|
||||
|
||||
Reference in New Issue
Block a user