From 9662be097d9d41c4b238fd2de3460e282bf64fa6 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Sun, 1 Oct 2017 13:24:07 -0700 Subject: [PATCH] Fix build error caused by 0b2ec56a --- src/osx/core/cfstring.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/osx/core/cfstring.cpp b/src/osx/core/cfstring.cpp index e11d286c31..502c2bc4a8 100644 --- a/src/osx/core/cfstring.cpp +++ b/src/osx/core/cfstring.cpp @@ -29,12 +29,16 @@ const wxString sLF((wxChar)10); wxString wxMacConvertNewlines13To10(const wxString& data) { - return wxString(data)->Replace(sCR, sLF); + wxString string(data); + string.Replace(sCR, sLF); + return string; } wxString wxMacConvertNewlines10To13(const wxString& data) { - return wxString(data)->Replace(sLF, sCR); + wxString string(data); + string.Replace(sLF, sCR); + return string; } wxUint32 wxMacGetSystemEncFromFontEnc(wxFontEncoding encoding)