OSDN Git Service

replace QGlyphLayout::spaceNeededForGlyphLayout() with QSPACEFORGLYPHS() macro so...
authorIvailo Monev <xakepa10@gmail.com>
Fri, 21 Jan 2022 16:31:03 +0000 (18:31 +0200)
committerIvailo Monev <xakepa10@gmail.com>
Fri, 21 Jan 2022 16:31:03 +0000 (18:31 +0200)
commitefed8dc8c10f36fbbcb37e1412e18b259256b90d
tree37059f5aa78b010c0a2c2562968561da4de4a35b
parent7cc0bf633dbdf2bda9d79b4047e12c42b5e4a577
replace QGlyphLayout::spaceNeededForGlyphLayout() with QSPACEFORGLYPHS() macro so that compilers can get it that it's constant expression

cheaper than function call and constexpr-free

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/gui/text/qtextengine.cpp
src/gui/text/qtextengine_p.h