OSDN Git Service
(root)
/
kde
/
Katie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21b2fd7
)
use new style cast in QFontEngineFT::minRightBearing()
author
Ivailo Monev
<xakepa10@laimg.moc>
Tue, 17 Dec 2019 02:36:21 +0000
(
02:36
+0000)
committer
Ivailo Monev
<xakepa10@laimg.moc>
Tue, 17 Dec 2019 02:36:21 +0000
(
02:36
+0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/gui/text/qfontengine_ft.cpp
patch
|
blob
|
history
diff --git
a/src/gui/text/qfontengine_ft.cpp
b/src/gui/text/qfontengine_ft.cpp
index
e6a1823
..
ab9ca22
100644
(file)
--- a/
src/gui/text/qfontengine_ft.cpp
+++ b/
src/gui/text/qfontengine_ft.cpp
@@
-1185,7
+1185,7
@@
qreal QFontEngineFT::minRightBearing() const
{
if (rbearing == SHRT_MIN) {
lbearing = rbearing = 0;
- const QChar *ch =
(const QChar *)(const void*)char_table
;
+ const QChar *ch =
reinterpret_cast<const QChar *>(char_table)
;
QGlyphLayoutArray<char_table_entries> glyphs;
int ng = char_table_entries;
stringToCMap(ch, char_table_entries, &glyphs, &ng, QTextEngine::GlyphIndicesOnly);