corrected warnings when compiling with -Wall -W

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15412 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Gilles Depeyrot
2002-05-07 21:58:27 +00:00
parent 54380f29f0
commit d84afea9d1
87 changed files with 333 additions and 245 deletions

View File

@@ -253,7 +253,6 @@ bool wxTextCtrl::CanPaste() const
if (!IsEditable())
return FALSE;
long offset ;
#if TARGET_CARBON
OSStatus err = noErr;
ScrapRef scrapRef;
@@ -275,6 +274,7 @@ bool wxTextCtrl::CanPaste() const
return FALSE;
#else
long offset ;
if ( GetScrap( NULL , 'TEXT' , &offset ) > 0 )
{
return TRUE ;
@@ -304,7 +304,7 @@ void wxTextCtrl::SetInsertionPointEnd()
long wxTextCtrl::GetInsertionPoint() const
{
ControlEditTextSelectionRec selection ;
// ControlEditTextSelectionRec selection ;
TEHandle teH ;
long size ;
@@ -315,7 +315,7 @@ long wxTextCtrl::GetInsertionPoint() const
long wxTextCtrl::GetLastPosition() const
{
ControlEditTextSelectionRec selection ;
// ControlEditTextSelectionRec selection ;
TEHandle teH ;
long size ;
@@ -393,8 +393,8 @@ void wxTextCtrl::WriteText(const wxString& text)
::GetControlData( (ControlHandle) m_macControl , 0, kControlEditTextTEHandleTag , sizeof( TEHandle ) , (char*) &teH , &size ) ;
TEInsert( wxBuffer , strlen( wxBuffer) , teH ) ;
Refresh() ;
TEInsert( wxBuffer , strlen( wxBuffer) , teH ) ;
Refresh() ;
}
void wxTextCtrl::AppendText(const wxString& text)