Commit 49a15642 authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

Changed use of ChangeSet.

parent 0f2a2464
......@@ -1045,7 +1045,7 @@ void generateAST_cpp(const Snapshot &snapshot, const QDir &cplusplusDir)
info.end = documentEnd;
if (info.remove) {
changes.remove(info.start, info.end - info.start);
changes.remove(info.start, info.end);
return;
}
......@@ -1063,7 +1063,7 @@ void generateAST_cpp(const Snapshot &snapshot, const QDir &cplusplusDir)
generateLastToken(os, className, fields);
}
changes.replace(info.start, info.end - info.start, method);
changes.replace(info.start, info.end, method);
}
QTextCursor tc(&cpp_document);
......
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