diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2020-05-14 17:51:41 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2020-05-15 20:00:24 +0200 |
commit | 5ffa5808f8b5cdc49242414006fd7b68cb2a1c12 (patch) | |
tree | b3083f4d155e11bf13c245845e1ab1b4cc9f1e22 /src/plugins/platforminputcontexts/ibus/qibusplatforminputcontext.cpp | |
parent | e5683c5e5ffe1a260b19f453b03451e48a352a54 (diff) |
QTaggedPointer: some API cleanups
- don't refer to the class with template arguments in the body of the class
(incl. one where we got the template args wrong)
- make namespace-level swap a non-member friend
- make default ctor constexpr and non-explicit
(default ctors should never be explicit)
- make ctor from std::nullptr_t constexpr
- remove op= from std::nullptr (will be handled by op=(T*) anyway)
- pass QTaggedPointer by value (it's a Trivial Type, so can be passed in registers)
- fix missing QTypeInfo for non-default Tag types
- remove unused include limits.h
- make qHash-able (why is the tag ignored?)
Change-Id: Idee1d685ac365c988698a8637fd5df3accfc1396
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/plugins/platforminputcontexts/ibus/qibusplatforminputcontext.cpp')
0 files changed, 0 insertions, 0 deletions