From 692db919db01f83b2d4d6f92112709a4382647dc Mon Sep 17 00:00:00 2001 From: Gilles Depeyrot Date: Sat, 19 Apr 2003 08:12:15 +0000 Subject: [PATCH] corrected warning (missing const) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20279 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/clipbrd.cpp | 3 +-- src/mac/clipbrd.cpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) 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 ) ; -- 2.50.0