Commit d8c7dc8c authored by Christian Kamm's avatar Christian Kamm

C++ function signature: Don't try to reuse nonexistant context.

Change-Id: I890cccc25c5ba774691edee860845e22a7b7ec78
Reviewed-on: http://codereview.qt-project.org/4876Reviewed-by: default avatarLeandro T. C. Melo <leandro.melo@nokia.com>
parent 1b80c6ff
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment