const-ify the return type of QOutlineMapper::elementTypes()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-03-29 04:02:37 +02:00
parent 4ce6c69719
commit bcdc1fd136

View file

@ -173,7 +173,7 @@ public:
QT_FT_Outline *convertPath(const QPainterPath &path);
QT_FT_Outline *convertPath(const QVectorPath &path);
inline QPainterPath::ElementType *elementTypes() const { return m_element_types.size() == 0 ? 0 : m_element_types.data(); }
inline const QPainterPath::ElementType *elementTypes() const { return m_element_types.size() == 0 ? 0 : m_element_types.data(); }
public:
QDataBuffer<QPainterPath::ElementType> m_element_types;