aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/textdocumentlayout.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/texteditor/textdocumentlayout.cpp')
-rw-r--r--src/plugins/texteditor/textdocumentlayout.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/texteditor/textdocumentlayout.cpp b/src/plugins/texteditor/textdocumentlayout.cpp
index d16befe9ab..6efa145aac 100644
--- a/src/plugins/texteditor/textdocumentlayout.cpp
+++ b/src/plugins/texteditor/textdocumentlayout.cpp
@@ -858,7 +858,7 @@ bool Parenthesis::operator==(const Parenthesis &other) const
void insertSorted(Parentheses &list, const Parenthesis &elem)
{
- const auto it = std::lower_bound(list.begin(), list.end(), elem,
+ const auto it = std::lower_bound(list.constBegin(), list.constEnd(), elem,
[](const auto &p1, const auto &p2) { return p1.pos < p2.pos; });
list.insert(it, elem);
}