Skip to content
Commit 6f173fc6 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Use QHash::value() in EffectWindowImpl::data()

Summary:
The `role` hash key is hashed twice:
* first, when calling `contains` method;
* second, when using `operator[]`.

We can do better by using [QHash::value](http://doc.qt.io/qt-5/qhash.html#value).

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: pino, davidedmundson, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D13820
parent 22a6cab1
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