Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RocketChatMobileEngine
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
hosting
chat
RocketChatMobileEngine
Commits
6e5155e8
Commit
6e5155e8
authored
6 years ago
by
Armin Felder
Browse files
Options
Downloads
Patches
Plain Diff
asd
parent
05b1d851
Branches
fixWrongDate
Branches containing commit
No related tags found
1 merge request
!121
asd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
container/sortedvector.cpp
+3
-3
3 additions, 3 deletions
container/sortedvector.cpp
with
3 additions
and
3 deletions
container/sortedvector.cpp
+
3
−
3
View file @
6e5155e8
...
...
@@ -31,7 +31,7 @@ int SortedVector<T>::insertSort( const QSharedPointer<T> &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
<
T
>
&
first
,
const
QSharedPointer
<
T
>
&
second
)
->
bool
{
return
(
*
first
)
>
(
*
second
);
}
);
...
...
@@ -46,7 +46,7 @@ template<typename T>
int
SortedVector
<
T
>::
findInsertPosition
(
const
QSharedPointer
<
T
>
&
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
<
T
>
&
first
,
const
QSharedPointer
<
T
>
&
second
)
->
bool
{
return
(
*
first
)
>
(
*
second
);
}
);
...
...
@@ -65,7 +65,7 @@ int SortedVector<T>::findPosition( const QSharedPointer<T> &pointer ) const
template
<
typename
T
>
void
SortedVector
<
T
>::
reOrder
()
{
std
::
sort
(
this
->
begin
(),
this
->
end
(),
[
=
](
const
auto
&
first
,
const
auto
&
second
)
->
bool
{
std
::
sort
(
this
->
begin
(),
this
->
end
(),
[
=
](
const
QSharedPointer
<
T
>
&
first
,
const
QSharedPointer
<
T
>
&
second
)
->
bool
{
return
(
*
first
)
>
(
*
second
);
}
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment