From 6e5155e83b1aa3e82fd40249275990918d474e5d Mon Sep 17 00:00:00 2001 From: Armin Felder Date: Sat, 9 Feb 2019 17:23:07 +0100 Subject: [PATCH] asd --- container/sortedvector.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/container/sortedvector.cpp b/container/sortedvector.cpp index f5c8ca7..b760cee 100644 --- a/container/sortedvector.cpp +++ b/container/sortedvector.cpp @@ -31,7 +31,7 @@ int SortedVector::insertSort( const QSharedPointer &pointer ) this->append( pointer ); row = 0; } else { - auto elementSmallerThanNew = std::lower_bound( this->begin(), this->end(), pointer, []( const auto & first, const auto & second )->bool{ + auto elementSmallerThanNew = std::lower_bound( this->begin(), this->end(), pointer, []( const QSharedPointer &first, const QSharedPointer &second )->bool{ return ( *first ) > ( *second ); } ); @@ -46,7 +46,7 @@ template int SortedVector::findInsertPosition( const QSharedPointer &pointer ) const { int row = -1; - auto elementSmallerThanNew = std::lower_bound( this->begin(), this->end(), pointer, []( const auto & first, const auto & second )->bool{ + auto elementSmallerThanNew = std::lower_bound( this->begin(), this->end(), pointer, []( const QSharedPointer &first, const QSharedPointer &second )->bool{ return ( *first ) > ( *second ); } ); @@ -65,7 +65,7 @@ int SortedVector::findPosition( const QSharedPointer &pointer ) const template void SortedVector::reOrder() { - std::sort( this->begin(), this->end(), [ = ]( const auto & first, const auto & second )->bool{ + std::sort( this->begin(), this->end(), [ = ]( const QSharedPointer &first, const QSharedPointer &second )->bool{ return ( *first ) > ( *second ); } ); } -- GitLab