HaikuDepot: Fix another instance of std::remove.
This commit is contained in:
@@ -467,7 +467,8 @@ TextDocument::AddUndoListener(UndoableEditListenerRef listener)
|
|||||||
bool
|
bool
|
||||||
TextDocument::RemoveUndoListener(UndoableEditListenerRef listener)
|
TextDocument::RemoveUndoListener(UndoableEditListenerRef listener)
|
||||||
{
|
{
|
||||||
std::remove(fUndoListeners.begin(), fUndoListeners.end(), listener);
|
fUndoListeners.erase(std::remove(fUndoListeners.begin(), fUndoListeners.end(),
|
||||||
|
listener), fUndoListeners.end());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user