Skip to content

Commit

Permalink
Simplify remove(_Object*) function by removing calling more api funct…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
OlivierLDff committed Apr 25, 2020
1 parent 4b32a41 commit 9af2e27
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions include/QOlm/QOlm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,10 +379,7 @@ class QOlm : public QOlmBase
void remove(_Object* object)
{
if(object != nullptr)
{
const int idx = _objects.indexOf(object);
remove(idx);
}
remove(indexOf(object));
}
void remove(const QList<_Object*>& objects)
{
Expand Down

0 comments on commit 9af2e27

Please sign in to comment.