Switch STROKE_FONT::Draw() to take "const wxString&" rather than "wxString" by value.
This commit is contained in:
parent
ed29423b78
commit
a2f6faf161
|
@ -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:
|
||||||
* @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…
Reference in New Issue