Made render() arg const
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
diff --git a/include/FTBitmapGlyph.h b/include/FTBitmapGlyph.h
index 6ad407e..3c0a811 100755
--- a/include/FTBitmapGlyph.h
+++ b/include/FTBitmapGlyph.h
@@ -14,7 +14,7 @@ class FTBitmapGlyph : public FTGlyph
// methods
FTBitmapGlyph( FT_Glyph glyph, int glyphIndex);
virtual ~FTBitmapGlyph();
- virtual float Render( FT_Vector& v);
+ virtual float Render( const FT_Vector& v);
// attributes
diff --git a/src/FTBitmapGlyph.cpp b/src/FTBitmapGlyph.cpp
index 42e6469..c7312cb 100755
--- a/src/FTBitmapGlyph.cpp
+++ b/src/FTBitmapGlyph.cpp
@@ -5,7 +5,10 @@
FTBitmapGlyph::FTBitmapGlyph( FT_Glyph glyph, int gi)
-: FTGlyph( gi)
+: FTGlyph( gi),
+ destWidth(0),
+ destHeight(0),
+ data(0)
{
if( !glyph->format == ft_glyph_format_bitmap)
{ return;}
@@ -59,7 +62,7 @@ FTBitmapGlyph::~FTBitmapGlyph()
}
-float FTBitmapGlyph::Render( FT_Vector& pen)
+float FTBitmapGlyph::Render( const FT_Vector& pen)
{
if( data != 0 )
{