From: Gilles Depeyrot Date: Sat, 19 Apr 2003 08:12:15 +0000 (+0000) Subject: corrected warning (missing const) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/692db919db01f83b2d4d6f92112709a4382647dc corrected warning (missing const) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20279 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/clipbrd.cpp b/src/mac/carbon/clipbrd.cpp index 942a17c6fb..7f9987f0f6 100644 --- a/src/mac/carbon/clipbrd.cpp +++ b/src/mac/carbon/clipbrd.cpp @@ -10,7 +10,6 @@ ///////////////////////////////////////////////////////////////////////////// #ifdef __GNUG__ -#pragma implementation #pragma implementation "clipbrd.h" #endif @@ -143,7 +142,7 @@ void *wxGetClipboardData(wxDataFormat dataFormat, long *len) #if wxUSE_UNICODE wxCharBuffer buf = st.ToAscii() ; #else - char* buf = st ; + const char* buf = st ; #endif char* newdata = new char[strlen(buf)+1] ; memcpy( newdata , buf , strlen(buf)+1 ) ; diff --git a/src/mac/clipbrd.cpp b/src/mac/clipbrd.cpp index 942a17c6fb..7f9987f0f6 100644 --- a/src/mac/clipbrd.cpp +++ b/src/mac/clipbrd.cpp @@ -10,7 +10,6 @@ ///////////////////////////////////////////////////////////////////////////// #ifdef __GNUG__ -#pragma implementation #pragma implementation "clipbrd.h" #endif @@ -143,7 +142,7 @@ void *wxGetClipboardData(wxDataFormat dataFormat, long *len) #if wxUSE_UNICODE wxCharBuffer buf = st.ToAscii() ; #else - char* buf = st ; + const char* buf = st ; #endif char* newdata = new char[strlen(buf)+1] ; memcpy( newdata , buf , strlen(buf)+1 ) ;