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:
@@ -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 ) ;
|
||||||
|
@@ -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 ) ;
|
||||||
|
Reference in New Issue
Block a user