aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/refactoringchanges.cpp
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2022-09-30 10:35:15 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2022-09-30 11:25:19 +0000
commit4c1f410881c49d8ac2bba9ca48a5c114cbb6cc12 (patch)
tree6ea8da57ceab87a4426d83e62e4f64e5f78b5541 /src/plugins/texteditor/refactoringchanges.cpp
parent3885b936b69e23d0049ae961a14581b488f2be6c (diff)
TextEditorPlugin: Limit the usage of std::make_pair
And qMakePair. Change-Id: Id92a662fa0674b9e9f835280bb9378c8d00549e8 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/texteditor/refactoringchanges.cpp')
-rw-r--r--src/plugins/texteditor/refactoringchanges.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/texteditor/refactoringchanges.cpp b/src/plugins/texteditor/refactoringchanges.cpp
index d259674fb9..a4afd31982 100644
--- a/src/plugins/texteditor/refactoringchanges.cpp
+++ b/src/plugins/texteditor/refactoringchanges.cpp
@@ -43,8 +43,7 @@ RefactoringSelections RefactoringChanges::rangesToSelections(QTextDocument *docu
start.setKeepPositionOnInsert(true);
QTextCursor end(document);
end.setPosition(qMin(range.end, document->characterCount() - 1));
-
- selections.append(qMakePair(start, end));
+ selections.push_back({start, end});
}
return selections;