Loading common/gal/stroke_font.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -147,7 +147,7 @@ BOX2D STROKE_FONT::computeBoundingBox( const GLYPH& aGLYPH, const VECTOR2D& aGLY } } void STROKE_FONT::Draw( wxString aText, const VECTOR2D& aPosition, double aRotationAngle ) void STROKE_FONT::Draw( const wxString& aText, const VECTOR2D& aPosition, double aRotationAngle ) { { // Context needs to be saved before any transformations // Context needs to be saved before any transformations m_gal->Save(); m_gal->Save(); Loading include/gal/stroke_font.h +1 −1 Original line number Original line Diff line number Diff line Loading @@ -70,7 +70,7 @@ public: * @param aPosition is the text position in world coordinates. * @param aPosition is the text position in world coordinates. * @param aRotationAngle is the text rotation angle. * @param aRotationAngle is the text rotation angle. */ */ void Draw( wxString aText, const VECTOR2D& aPosition, double aRotationAngle ); void Draw( const wxString& aText, const VECTOR2D& aPosition, double aRotationAngle ); /** /** * @brief Set the glyph size. * @brief Set the glyph size. Loading Loading
common/gal/stroke_font.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -147,7 +147,7 @@ BOX2D STROKE_FONT::computeBoundingBox( const GLYPH& aGLYPH, const VECTOR2D& aGLY } } void STROKE_FONT::Draw( wxString aText, const VECTOR2D& aPosition, double aRotationAngle ) void STROKE_FONT::Draw( const wxString& aText, const VECTOR2D& aPosition, double aRotationAngle ) { { // Context needs to be saved before any transformations // Context needs to be saved before any transformations m_gal->Save(); m_gal->Save(); Loading
include/gal/stroke_font.h +1 −1 Original line number Original line Diff line number Diff line Loading @@ -70,7 +70,7 @@ public: * @param aPosition is the text position in world coordinates. * @param aPosition is the text position in world coordinates. * @param aRotationAngle is the text rotation angle. * @param aRotationAngle is the text rotation angle. */ */ void Draw( wxString aText, const VECTOR2D& aPosition, double aRotationAngle ); void Draw( const wxString& aText, const VECTOR2D& aPosition, double aRotationAngle ); /** /** * @brief Set the glyph size. * @brief Set the glyph size. Loading