Commit 0aa288bf authored by Vlad Zahorodnii's avatar Vlad Zahorodnii

Port away from deprecated qFind

Test Plan: Compiles, the number of compiler warnings has been reduced from 990 to 202.

Reviewers: #kwin, apol, davidedmundson

Reviewed By: #kwin, apol, davidedmundson

Subscribers: kwin

Tags: #kwin

Differential Revision:
parent 24cbe486
......@@ -374,15 +374,13 @@ WindowRules::WindowRules()
bool WindowRules::contains(const Rules* rule) const
return qFind(rules.begin(), rules.end(), rule) != rules.end();
return rules.contains(const_cast<Rules *>(rule));
void WindowRules::remove(Rules* rule)
QVector< Rules* >::Iterator pos = qFind(rules.begin(), rules.end(), rule);
if (pos != rules.end())
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment