Fixing some particularly bad /W4.

This commit is contained in:
Ben Vanik
2015-07-18 23:04:21 -07:00
parent 4128727f6b
commit 91d7acf59e
34 changed files with 123 additions and 125 deletions

View File

@@ -52,7 +52,7 @@ void MenuItem::AddChild(MenuItemPtr child_item) {
}
void MenuItem::RemoveChild(MenuItem* child_item) {
for (auto& it = children_.begin(); it != children_.end(); ++it) {
for (auto it = children_.begin(); it != children_.end(); ++it) {
if (it->get() == child_item) {
children_.erase(it);
OnChildRemoved(child_item);