Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(719)

Unified Diff: third_party/WebKit/Source/core/svg/properties/SVGListPropertyHelper.h

Issue 2776203002: Migrate WTF::Vector::remove() to ::erase() (Closed)
Patch Set: rebase, repatch VectorTest Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/svg/properties/SVGListPropertyHelper.h
diff --git a/third_party/WebKit/Source/core/svg/properties/SVGListPropertyHelper.h b/third_party/WebKit/Source/core/svg/properties/SVGListPropertyHelper.h
index 19f8ac5179a83e7e012e869829a762b012708db4..120e0e2c7154b9bcb851d2c37d4baa949c4460eb 100644
--- a/third_party/WebKit/Source/core/svg/properties/SVGListPropertyHelper.h
+++ b/third_party/WebKit/Source/core/svg/properties/SVGListPropertyHelper.h
@@ -235,7 +235,7 @@ ItemProperty* SVGListPropertyHelper<Derived, ItemProperty>::removeItem(
}
DCHECK_EQ(m_values.at(index)->ownerList(), this);
ItemPropertyType* oldItem = m_values.at(index);
- m_values.remove(index);
+ m_values.erase(index);
oldItem->setOwnerList(0);
return oldItem;
}

Powered by Google App Engine
This is Rietveld 408576698