corrected warning (missing const)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20279 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Gilles Depeyrot
2003-04-19 08:12:15 +00:00
parent 90b2e44c5b
commit 692db919db
2 changed files with 2 additions and 4 deletions

View File

@@ -10,7 +10,6 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__ #ifdef __GNUG__
#pragma implementation
#pragma implementation "clipbrd.h" #pragma implementation "clipbrd.h"
#endif #endif
@@ -143,7 +142,7 @@ void *wxGetClipboardData(wxDataFormat dataFormat, long *len)
#if wxUSE_UNICODE #if wxUSE_UNICODE
wxCharBuffer buf = st.ToAscii() ; wxCharBuffer buf = st.ToAscii() ;
#else #else
char* buf = st ; const char* buf = st ;
#endif #endif
char* newdata = new char[strlen(buf)+1] ; char* newdata = new char[strlen(buf)+1] ;
memcpy( newdata , buf , strlen(buf)+1 ) ; memcpy( newdata , buf , strlen(buf)+1 ) ;

View File

@@ -10,7 +10,6 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__ #ifdef __GNUG__
#pragma implementation
#pragma implementation "clipbrd.h" #pragma implementation "clipbrd.h"
#endif #endif
@@ -143,7 +142,7 @@ void *wxGetClipboardData(wxDataFormat dataFormat, long *len)
#if wxUSE_UNICODE #if wxUSE_UNICODE
wxCharBuffer buf = st.ToAscii() ; wxCharBuffer buf = st.ToAscii() ;
#else #else
char* buf = st ; const char* buf = st ;
#endif #endif
char* newdata = new char[strlen(buf)+1] ; char* newdata = new char[strlen(buf)+1] ;
memcpy( newdata , buf , strlen(buf)+1 ) ; memcpy( newdata , buf , strlen(buf)+1 ) ;