fixed gcc warnings about wrong format string

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2006-08-08 15:11:30 +00:00
parent 869b59fc91
commit e772e33055

View File

@@ -1673,7 +1673,7 @@ int wxImage::GetImageCount( wxInputStream &stream, long type )
if ( !handler )
{
wxLogWarning(_("No image handler for type %d defined."), type);
wxLogWarning(_("No image handler for type %ld defined."), type);
return false;
}
@@ -1683,7 +1683,7 @@ int wxImage::GetImageCount( wxInputStream &stream, long type )
}
else
{
wxLogError(_("Image file is not of type %d."), type);
wxLogError(_("Image file is not of type %ld."), type);
return 0;
}
}
@@ -1716,14 +1716,14 @@ bool wxImage::LoadFile( wxInputStream& stream, long type, int index )
if (handler == 0)
{
wxLogWarning( _("No image handler for type %d defined."), type );
wxLogWarning( _("No image handler for type %ld defined."), type );
return false;
}
if (stream.IsSeekable() && !handler->CanRead(stream))
{
wxLogError(_("Image file is not of type %d."), type);
wxLogError(_("Image file is not of type %ld."), type);
return false;
}
else