diff --git a/src/common/dobjcmn.cpp b/src/common/dobjcmn.cpp index 01a1a6699c..2b6ce68efb 100644 --- a/src/common/dobjcmn.cpp +++ b/src/common/dobjcmn.cpp @@ -508,7 +508,7 @@ bool wxHTMLDataObject::SetData(size_t WXUNUSED(len), const void *buf) return false; // Windows and Mac always use UTF-8, and docs suggest GTK does as well. - const wxString html = wxString::FromUTF8(static_cast(buf)); + wxString html = wxString::FromUTF8(static_cast(buf)); #ifdef __WXMSW__ // To be consistent with other platforms, we only add the Fragment part