-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
QLocale: add (in)equality operators with QLocale::Language
We do have an implicit constructor which allows construction of a QLocale from the QLocale::Language enum values. It will be used when doing the comparison. However, do not rely on the implicit conversions, and provide the operators that explicitly do the right thing. This also allows us to save an extra allocation of QLocalePrivate. Found in Qt 6.8 API review. Amends 71bbc35. As a drive-by: fix the order of the test slots in the unit test. Pick-to: 6.8 Change-Id: I37f8f5881469b7734705e06e471746814dd2ddf0 Reviewed-by: Edward Welbourne <[email protected]> Reviewed-by: Thiago Macieira <[email protected]>
- Loading branch information
Showing
3 changed files
with
49 additions
and
5 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