X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..976abb72fc2a94bf38c9231690ebeabc7631e491:/src/msw/font.cpp diff --git a/src/msw/font.cpp b/src/msw/font.cpp index 9b6c4cf1ff..d335ae6fce 100644 --- a/src/msw/font.cpp +++ b/src/msw/font.cpp @@ -562,7 +562,7 @@ void wxNativeFontInfo::SetUnderlined(bool underlined) lf.lfUnderline = underlined; } -void wxNativeFontInfo::SetFaceName(wxString facename) +void wxNativeFontInfo::SetFaceName(const wxString& facename) { wxStrncpy(lf.lfFaceName, facename, WXSIZEOF(lf.lfFaceName)); }