-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
QPen/QBrush: de-inline compare helper functions
These functions expose implementation details of their respective class, so, seeing as the classes are pimpl'ed and their op==s are out-of-line, too, these functions ought to be out-of-line, too. De-inline them, by calling a private out-of-line helper function. This way, they can remain unexported and "real" hidden friends (= with an inline definition). As drive-by: - in QBrush/QColor: check the properties in the order of cheapness (style(), color(), transform()), and don't copy QTransform just to check isIdentity() (access the member directly). - in QPen/QColor: avoid the QBrush copy (access the member directly). This also retroactively endorses the noexcept on this function. - in QPen/PenStyle: amend the comment that says it's allocating with a `// ### optimize` Amends f018686. Found in API-review. Pick-to: 6.9 Change-Id: Ibfd43b1f2200ef030d6739dad1bf026cc190606b Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
- Loading branch information
Showing
4 changed files
with
52 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters