Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Workspace
Commits
7ea65e0f
Commit
7ea65e0f
authored
Apr 28, 2022
by
Méven Car
Browse files
KAStatsFavoritesModel: Simplify code using std::remove
parent
cef441e4
Pipeline
#169354
passed with stage
in 9 minutes and 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
applets/kicker/plugin/kastatsfavoritesmodel.cpp
View file @
7ea65e0f
...
...
@@ -303,13 +303,7 @@ public:
m_items
.
removeAt
(
index
);
// Removing the entry from the cache
QMutableHashIterator
<
QString
,
QSharedPointer
<
AbstractEntry
>>
i
(
m_itemEntries
);
while
(
i
.
hasNext
())
{
i
.
next
();
if
(
i
.
value
()
==
entry
)
{
i
.
remove
();
}
}
std
::
remove
(
m_itemEntries
.
begin
(),
m_itemEntries
.
end
(),
entry
);
endRemoveRows
();
}
...
...
Méven Car
@meven
mentioned in merge request
!1692 (closed)
·
May 03, 2022
mentioned in merge request
!1692 (closed)
mentioned in merge request !1692
Toggle commit list
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment