summaryrefslogtreecommitdiff
path: root/src/tools/cplusplus/generate-ast.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/cplusplus/generate-ast.cpp')
-rw-r--r--src/tools/cplusplus/generate-ast.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/cplusplus/generate-ast.cpp b/src/tools/cplusplus/generate-ast.cpp
index 2a66b8d7f0..22a2f60a03 100644
--- a/src/tools/cplusplus/generate-ast.cpp
+++ b/src/tools/cplusplus/generate-ast.cpp
@@ -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);