mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
fix deprecated warning qUpperBound
Use std::upper_bound instead.
This commit is contained in:
committed by
Laurent Trinques
parent
20a739fa96
commit
37658efd0d
@@ -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<qreal>::const_iterator i = qUpperBound(available_lengths, radius);
|
||||
QList<qreal>::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()) {
|
||||
|
||||
Reference in New Issue
Block a user