summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextlayout.h
diff options
context:
space:
mode:
authorSérgio Martins <sergio.martins@kdab.com>2015-05-25 18:32:35 +0100
committerMarc Mutz <marc.mutz@kdab.com>2015-05-30 07:15:24 +0000
commit9eff0dd19d6507ec400f036dd27efe960e4e5f78 (patch)
treeed9cd2e3bffc0df9e6fcbb1daa4b52210aec347b /src/gui/text/qtextlayout.h
parentfda08f3971e854ad1623fb99212746143c27e412 (diff)
QSet: Introduce intersects().
The pattern "mySet.intersect(other).isEmpty()" has been spotted in the wild and in Qt codebase. intersects() is much cheaper because it bails out as soon as we find one common item and doesn't do any allocations. [ChangeLog][QtCore][QSet] Added intersects(). Change-Id: I44a350dc4cdb9deb835a23eee99fc99d6ca24c82 Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/gui/text/qtextlayout.h')
0 files changed, 0 insertions, 0 deletions