Generalized the changeset operations.

This commit is contained in:
Roberto Raggi
2010-06-22 10:14:06 +02:00
parent b13d6ae362
commit eb749ec3a2
9 changed files with 121 additions and 187 deletions

View File

@@ -880,7 +880,7 @@ void QmlJSTextEditor::renameIdUnderCursor()
Utils::ChangeSet changeSet;
foreach (const AST::SourceLocation &loc, m_semanticInfo.idLocations.value(id)) {
changeSet.replace(loc.offset, loc.length, newId);
changeSet.replace(loc.begin(), loc.end(), newId);
}
QTextCursor tc = textCursor();