From 105a66e6543467863a39cd12271f125b45d74179 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Thu, 18 May 2017 14:49:04 +0200 Subject: Use (new) erase()/erase_if() algorithms Change-Id: I45c18fd45c20b226e44d16315e3ebb6c305d4ab0 Reviewed-by: Thiago Macieira --- src/widgets/styles/qwindowsstyle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/widgets/styles/qwindowsstyle.cpp') diff --git a/src/widgets/styles/qwindowsstyle.cpp b/src/widgets/styles/qwindowsstyle.cpp index ec252d9293..78e244307f 100644 --- a/src/widgets/styles/qwindowsstyle.cpp +++ b/src/widgets/styles/qwindowsstyle.cpp @@ -173,7 +173,7 @@ bool QWindowsStyle::eventFilter(QObject *o, QEvent *e) return w->isWindow() || !w->isVisible() || w->style()->styleHint(SH_UnderlineShortcut, nullptr, w); }; - l.erase(std::remove_if(l.begin(), l.end(), ignorable), l.end()); + l.removeIf(ignorable); // Update states before repainting d->seenAlt.append(widget); d->alt_down = true; -- cgit v1.2.3