Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
-
None
Description
The QFont::resolve() function currently operates on only lvalue *this and argument. The implementation could be faster if either of the two (or both) were known to be rvalues.
Add the complete set:
- QFont resolve(const QFont &) const & (exists, but needs to be REMOVED_SINCE to make adding a const & *this overload possible)
- QFont resolve(QFont &&) const &
- QFont resolve(const QFont &) &&
- QFont resolve(QFont &&) &&
Then add an rvalue overload of QPainter::setFont().