forked from amazingfate/loongoffice
Change-Id: Idd7945176e1f667c29ff11144dc78870110bf562 Reviewed-on: https://gerrit.libreoffice.org/23716 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Martin Hosken <martin_hosken@sil.org>
41 lines
961 B
Diff
41 lines
961 B
Diff
--- src/gr_face.cpp
|
|
+++ src/gr_face.cpp
|
|
@@ -87,7 +87,7 @@
|
|
|
|
Face *res = new Face(appFaceHandle, *ops);
|
|
if (res && load_face(*res, faceOptions))
|
|
- return static_cast<gr_face *>(res);
|
|
+ return reinterpret_cast<gr_face *>(res);
|
|
|
|
delete res;
|
|
return 0;
|
|
@@ -195,7 +195,7 @@
|
|
|
|
void gr_face_destroy(gr_face *face)
|
|
{
|
|
- delete face;
|
|
+ delete static_cast<Face *>(face);
|
|
}
|
|
|
|
|
|
--- src/gr_font.cpp
|
|
+++ src/gr_font.cpp
|
|
@@ -50,7 +50,7 @@
|
|
if (face == 0) return 0;
|
|
|
|
Font * const res = new Font(ppm, *face, appFontHandle, font_ops);
|
|
- return static_cast<gr_font*>(res);
|
|
+ return reinterpret_cast<gr_font*>(res);
|
|
}
|
|
|
|
gr_font* gr_make_font_with_advance_fn(float ppm/*pixels per em*/, const void* appFontHandle/*non-NULL*/, gr_advance_fn getAdvance, const gr_face * face/*needed for scaling*/)
|
|
@@ -61,7 +61,7 @@
|
|
|
|
void gr_font_destroy(gr_font *font)
|
|
{
|
|
- delete font;
|
|
+ delete static_cast<Font *>(font);
|
|
}
|
|
|
|
|