Merge pull request #34028 from nekomatata/list-erase-not-found

Removed errors when List::erase() can't find the value
This commit is contained in:
Rémi Verschelde 2020-07-02 13:32:57 +02:00 committed by GitHub
commit c069f5f5ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -348,7 +348,7 @@ public:
* erase an element in the list, by iterator pointing to it. Return true if it was found/erased.
*/
bool erase(const Element *p_I) {
if (_data) {
if (_data && p_I) {
bool ret = _data->erase(p_I);
if (_data->size_cache == 0) {