Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0e8da15

Browse files
committed
Resolve use of qUpperBound for Qt 6
1 parent 67c30a2 commit 0e8da15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/repository.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ long long FastImportRepository::markFrom(const QString &branchFrom, int branchRe
616616
return brFrom.marks.last();
617617
}
618618

619-
QVector<int>::const_iterator it = qUpperBound(brFrom.commits, branchRevNum);
619+
QVector<int>::const_iterator it = std::upper_bound(brFrom.commits.constBegin(), brFrom.commits.constEnd(), branchRevNum);
620620
if (it == brFrom.commits.begin()) {
621621
return 0;
622622
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /