From f337034944f7f8d2d0a2fa7ceb76fa410709fba6 Mon Sep 17 00:00:00 2001 From: "Zane U. Ji" Date: Wed, 14 Aug 2019 21:23:20 +0800 Subject: [PATCH] Fix compiling problems --- src/mypropertysheet.cpp | 2 +- src/xmlcopyeditor.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mypropertysheet.cpp b/src/mypropertysheet.cpp index 2f09b42..216b205 100644 --- a/src/mypropertysheet.cpp +++ b/src/mypropertysheet.cpp @@ -189,7 +189,7 @@ MyPropertySheet::MyPropertySheet ( for ( ; t != translations.end(); ++t ) { index = languageBox->Append ( wxGetTranslation ( ( **t ).Description ), - ( void* )( **t ).Language ); + ( void* ) ( wxIntPtr ) ( **t ).Language ); if (lang == ( **t ).Language) languageBox->SetSelection ( index ); } diff --git a/src/xmlcopyeditor.cpp b/src/xmlcopyeditor.cpp index bd4cebc..3a84362 100644 --- a/src/xmlcopyeditor.cpp +++ b/src/xmlcopyeditor.cpp @@ -226,7 +226,9 @@ MyApp::MyApp() , config ( new wxFileConfig ( _T ( "xmlcopyeditor" ) ) ) #endif { +#if wxCHECK_VERSION(2,9,0) wxDisableAsserts(); +#endif #if defined ( __WXGTK__ ) && !defined ( __WXDEBUG__ ) int fdnull = open ( "/dev/null", O_WRONLY, 0 ); @@ -3914,7 +3916,7 @@ void MyFrame::OnValidateSchema ( wxCommandEvent& event ) getRawText ( doc, rawBuffer ); XmlSchemaLocator xsl ( "UTF-8" ); xsl.parse ( rawBuffer.c_str() ); - if ( ( xsl.getSchemaLocation() ) . empty() ) + if ( ( xsl.getSchemaLocation() ).empty() ) { OnValidateDTD ( event ); return;