Details
-
Bug
-
Resolution: Duplicate
-
P3: Somewhat important
-
5.7.0
-
None
Description
The constructor
QFontMetrics::QFontMetrics(const QFont &font, QPaintDevice *paintdevice)
should use a const pointer to the paint device instead:
QFontMetrics::QFontMetrics(const QFont &font, const QPaintDevice *paintdevice)
Logically, it is not meant to modify the device. It just calls a const function, so the change should be trivial.
Attachments
Issue Links
- duplicates
-
QTBUG-65967 Make QPaintDevice parameters const in constructors of QFont, QFontMetrics and QTextLayout
-
- Closed
-