Commit a2f6faf1 authored by Dick Hollenbeck's avatar Dick Hollenbeck
Browse files

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

parent ed29423b
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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();
+1 −1
Original line number Original line Diff line number Diff line
@@ -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.