From 37658efd0dcf1bb2eafe636397c0032f57503bdc Mon Sep 17 00:00:00 2001 From: Simon De Backer Date: Sun, 7 Jun 2020 08:55:24 +0200 Subject: [PATCH] fix deprecated warning qUpperBound Use std::upper_bound instead. --- sources/qtextorientationwidget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sources/qtextorientationwidget.cpp b/sources/qtextorientationwidget.cpp index 900dae368..fda569d9e 100644 --- a/sources/qtextorientationwidget.cpp +++ b/sources/qtextorientationwidget.cpp @@ -286,7 +286,9 @@ QString QTextOrientationWidget::getMostUsableStringForRadius(const qreal &radius // trie les longueurs par ordre croissant std::sort(available_lengths.begin(), available_lengths.end()); // recherche la position ou l'on insererait le rayon - QList::const_iterator i = qUpperBound(available_lengths, radius); + QList::const_iterator i = std::upper_bound(available_lengths.begin(), + available_lengths.end(), + radius); // la valeur precedent cette position est donc celle qui nous interesse if (i == available_lengths.begin()) {