Commit a2f6faf1 authored by Dick Hollenbeck's avatar Dick Hollenbeck

Switch STROKE_FONT::Draw() to take "const wxString&" rather than "wxString" by value.

parent ed29423b
...@@ -147,7 +147,7 @@ BOX2D STROKE_FONT::computeBoundingBox( const GLYPH& aGLYPH, const VECTOR2D& aGLY ...@@ -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();
......
...@@ -70,7 +70,7 @@ public: ...@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment