Fix compiling problems
This commit is contained in:
parent
621be4257a
commit
f337034944
|
@ -189,7 +189,7 @@ MyPropertySheet::MyPropertySheet (
|
||||||
for ( ; t != translations.end(); ++t )
|
for ( ; t != translations.end(); ++t )
|
||||||
{
|
{
|
||||||
index = languageBox->Append ( wxGetTranslation ( ( **t ).Description ),
|
index = languageBox->Append ( wxGetTranslation ( ( **t ).Description ),
|
||||||
( void* )( **t ).Language );
|
( void* ) ( wxIntPtr ) ( **t ).Language );
|
||||||
if (lang == ( **t ).Language)
|
if (lang == ( **t ).Language)
|
||||||
languageBox->SetSelection ( index );
|
languageBox->SetSelection ( index );
|
||||||
}
|
}
|
||||||
|
|
|
@ -226,7 +226,9 @@ MyApp::MyApp()
|
||||||
, config ( new wxFileConfig ( _T ( "xmlcopyeditor" ) ) )
|
, config ( new wxFileConfig ( _T ( "xmlcopyeditor" ) ) )
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
#if wxCHECK_VERSION(2,9,0)
|
||||||
wxDisableAsserts();
|
wxDisableAsserts();
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined ( __WXGTK__ ) && !defined ( __WXDEBUG__ )
|
#if defined ( __WXGTK__ ) && !defined ( __WXDEBUG__ )
|
||||||
int fdnull = open ( "/dev/null", O_WRONLY, 0 );
|
int fdnull = open ( "/dev/null", O_WRONLY, 0 );
|
||||||
|
@ -3914,7 +3916,7 @@ void MyFrame::OnValidateSchema ( wxCommandEvent& event )
|
||||||
getRawText ( doc, rawBuffer );
|
getRawText ( doc, rawBuffer );
|
||||||
XmlSchemaLocator xsl ( "UTF-8" );
|
XmlSchemaLocator xsl ( "UTF-8" );
|
||||||
xsl.parse ( rawBuffer.c_str() );
|
xsl.parse ( rawBuffer.c_str() );
|
||||||
if ( ( xsl.getSchemaLocation() ) . empty() )
|
if ( ( xsl.getSchemaLocation() ).empty() )
|
||||||
{
|
{
|
||||||
OnValidateDTD ( event );
|
OnValidateDTD ( event );
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue