corrected printf format strings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15934 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -60,7 +60,7 @@ wxPrinterDC::wxPrinterDC(const wxPrintData& printdata)
|
|||||||
if ( err != noErr )
|
if ( err != noErr )
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
message.Printf( "Print Error %d", err ) ;
|
message.Printf( "Print Error %ld", err ) ;
|
||||||
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
||||||
dialog.ShowModal();
|
dialog.ShowModal();
|
||||||
#if TARGET_CARBON && PM_USE_SESSION_APIS
|
#if TARGET_CARBON && PM_USE_SESSION_APIS
|
||||||
@@ -81,7 +81,7 @@ wxPrinterDC::wxPrinterDC(const wxPrintData& printdata)
|
|||||||
err = PrError() ;
|
err = PrError() ;
|
||||||
if ( err != noErr )
|
if ( err != noErr )
|
||||||
{
|
{
|
||||||
message.Printf( "Print Error %d", err ) ;
|
message.Printf( "Print Error %ld", err ) ;
|
||||||
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
||||||
dialog.ShowModal();
|
dialog.ShowModal();
|
||||||
UMAPrClose(NULL) ;
|
UMAPrClose(NULL) ;
|
||||||
@@ -93,7 +93,7 @@ wxPrinterDC::wxPrinterDC(const wxPrintData& printdata)
|
|||||||
err = PrError() ;
|
err = PrError() ;
|
||||||
if ( err )
|
if ( err )
|
||||||
{
|
{
|
||||||
message.Printf( "Print Error %d", err ) ;
|
message.Printf( "Print Error %ld", err ) ;
|
||||||
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
||||||
dialog.ShowModal();
|
dialog.ShowModal();
|
||||||
UMAPrClose(NULL) ;
|
UMAPrClose(NULL) ;
|
||||||
@@ -117,7 +117,7 @@ wxPrinterDC::wxPrinterDC(const wxPrintData& printdata)
|
|||||||
if ( err != noErr || m_macPrintSessionPort == kPMNoReference )
|
if ( err != noErr || m_macPrintSessionPort == kPMNoReference )
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
message.Printf( "Print Error %d", err ) ;
|
message.Printf( "Print Error %ld", err ) ;
|
||||||
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
||||||
dialog.ShowModal();
|
dialog.ShowModal();
|
||||||
#if TARGET_CARBON && PM_USE_SESSION_APIS
|
#if TARGET_CARBON && PM_USE_SESSION_APIS
|
||||||
@@ -139,7 +139,7 @@ wxPrinterDC::wxPrinterDC(const wxPrintData& printdata)
|
|||||||
err = PMGetAdjustedPaperRect((PMPageFormat)m_printData.m_macPageFormat, &rPaper);
|
err = PMGetAdjustedPaperRect((PMPageFormat)m_printData.m_macPageFormat, &rPaper);
|
||||||
if ( err != noErr )
|
if ( err != noErr )
|
||||||
{
|
{
|
||||||
message.Printf( "Print Error %d", err ) ;
|
message.Printf( "Print Error %ld", err ) ;
|
||||||
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
||||||
dialog.ShowModal();
|
dialog.ShowModal();
|
||||||
#if TARGET_CARBON && PM_USE_SESSION_APIS
|
#if TARGET_CARBON && PM_USE_SESSION_APIS
|
||||||
@@ -178,7 +178,7 @@ wxPrinterDC::~wxPrinterDC(void)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
message.Printf( "Print Error %d", err ) ;
|
message.Printf( "Print Error %ld", err ) ;
|
||||||
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
||||||
dialog.ShowModal();
|
dialog.ShowModal();
|
||||||
}
|
}
|
||||||
@@ -196,7 +196,7 @@ wxPrinterDC::~wxPrinterDC(void)
|
|||||||
#endif
|
#endif
|
||||||
if ( err != noErr )
|
if ( err != noErr )
|
||||||
{
|
{
|
||||||
message.Printf( "Print Error %d", err ) ;
|
message.Printf( "Print Error %ld", err ) ;
|
||||||
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
||||||
dialog.ShowModal();
|
dialog.ShowModal();
|
||||||
}
|
}
|
||||||
@@ -252,7 +252,7 @@ void wxPrinterDC::StartPage(void)
|
|||||||
err = PrError() ;
|
err = PrError() ;
|
||||||
if ( err != noErr )
|
if ( err != noErr )
|
||||||
{
|
{
|
||||||
message.Printf( "Print Error %d", err ) ;
|
message.Printf( "Print Error %ld", err ) ;
|
||||||
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
||||||
dialog.ShowModal();
|
dialog.ShowModal();
|
||||||
::PrClosePage( (TPPrPort) m_macPrintSessionPort ) ;
|
::PrClosePage( (TPPrPort) m_macPrintSessionPort ) ;
|
||||||
@@ -271,7 +271,7 @@ void wxPrinterDC::StartPage(void)
|
|||||||
#endif
|
#endif
|
||||||
if ( err != noErr )
|
if ( err != noErr )
|
||||||
{
|
{
|
||||||
message.Printf( "Print Error %d", err ) ;
|
message.Printf( "Print Error %ld", err ) ;
|
||||||
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
||||||
dialog.ShowModal();
|
dialog.ShowModal();
|
||||||
#if PM_USE_SESSION_APIS
|
#if PM_USE_SESSION_APIS
|
||||||
@@ -302,7 +302,7 @@ void wxPrinterDC::EndPage(void)
|
|||||||
err = PrError() ;
|
err = PrError() ;
|
||||||
if ( err != noErr )
|
if ( err != noErr )
|
||||||
{
|
{
|
||||||
message.Printf( "Print Error %d", err ) ;
|
message.Printf( "Print Error %ld", err ) ;
|
||||||
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
||||||
dialog.ShowModal();
|
dialog.ShowModal();
|
||||||
::PrCloseDoc( (TPPrPort) m_macPrintSessionPort ) ;
|
::PrCloseDoc( (TPPrPort) m_macPrintSessionPort ) ;
|
||||||
@@ -318,7 +318,7 @@ void wxPrinterDC::EndPage(void)
|
|||||||
#endif
|
#endif
|
||||||
if ( err != noErr )
|
if ( err != noErr )
|
||||||
{
|
{
|
||||||
message.Printf( "Print Error %d", err ) ;
|
message.Printf( "Print Error %ld", err ) ;
|
||||||
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
||||||
dialog.ShowModal();
|
dialog.ShowModal();
|
||||||
#if PM_USE_SESSION_APIS
|
#if PM_USE_SESSION_APIS
|
||||||
|
@@ -60,7 +60,7 @@ wxPrinterDC::wxPrinterDC(const wxPrintData& printdata)
|
|||||||
if ( err != noErr )
|
if ( err != noErr )
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
message.Printf( "Print Error %d", err ) ;
|
message.Printf( "Print Error %ld", err ) ;
|
||||||
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
||||||
dialog.ShowModal();
|
dialog.ShowModal();
|
||||||
#if TARGET_CARBON && PM_USE_SESSION_APIS
|
#if TARGET_CARBON && PM_USE_SESSION_APIS
|
||||||
@@ -81,7 +81,7 @@ wxPrinterDC::wxPrinterDC(const wxPrintData& printdata)
|
|||||||
err = PrError() ;
|
err = PrError() ;
|
||||||
if ( err != noErr )
|
if ( err != noErr )
|
||||||
{
|
{
|
||||||
message.Printf( "Print Error %d", err ) ;
|
message.Printf( "Print Error %ld", err ) ;
|
||||||
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
||||||
dialog.ShowModal();
|
dialog.ShowModal();
|
||||||
UMAPrClose(NULL) ;
|
UMAPrClose(NULL) ;
|
||||||
@@ -93,7 +93,7 @@ wxPrinterDC::wxPrinterDC(const wxPrintData& printdata)
|
|||||||
err = PrError() ;
|
err = PrError() ;
|
||||||
if ( err )
|
if ( err )
|
||||||
{
|
{
|
||||||
message.Printf( "Print Error %d", err ) ;
|
message.Printf( "Print Error %ld", err ) ;
|
||||||
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
||||||
dialog.ShowModal();
|
dialog.ShowModal();
|
||||||
UMAPrClose(NULL) ;
|
UMAPrClose(NULL) ;
|
||||||
@@ -117,7 +117,7 @@ wxPrinterDC::wxPrinterDC(const wxPrintData& printdata)
|
|||||||
if ( err != noErr || m_macPrintSessionPort == kPMNoReference )
|
if ( err != noErr || m_macPrintSessionPort == kPMNoReference )
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
message.Printf( "Print Error %d", err ) ;
|
message.Printf( "Print Error %ld", err ) ;
|
||||||
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
||||||
dialog.ShowModal();
|
dialog.ShowModal();
|
||||||
#if TARGET_CARBON && PM_USE_SESSION_APIS
|
#if TARGET_CARBON && PM_USE_SESSION_APIS
|
||||||
@@ -139,7 +139,7 @@ wxPrinterDC::wxPrinterDC(const wxPrintData& printdata)
|
|||||||
err = PMGetAdjustedPaperRect((PMPageFormat)m_printData.m_macPageFormat, &rPaper);
|
err = PMGetAdjustedPaperRect((PMPageFormat)m_printData.m_macPageFormat, &rPaper);
|
||||||
if ( err != noErr )
|
if ( err != noErr )
|
||||||
{
|
{
|
||||||
message.Printf( "Print Error %d", err ) ;
|
message.Printf( "Print Error %ld", err ) ;
|
||||||
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
||||||
dialog.ShowModal();
|
dialog.ShowModal();
|
||||||
#if TARGET_CARBON && PM_USE_SESSION_APIS
|
#if TARGET_CARBON && PM_USE_SESSION_APIS
|
||||||
@@ -178,7 +178,7 @@ wxPrinterDC::~wxPrinterDC(void)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
message.Printf( "Print Error %d", err ) ;
|
message.Printf( "Print Error %ld", err ) ;
|
||||||
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
||||||
dialog.ShowModal();
|
dialog.ShowModal();
|
||||||
}
|
}
|
||||||
@@ -196,7 +196,7 @@ wxPrinterDC::~wxPrinterDC(void)
|
|||||||
#endif
|
#endif
|
||||||
if ( err != noErr )
|
if ( err != noErr )
|
||||||
{
|
{
|
||||||
message.Printf( "Print Error %d", err ) ;
|
message.Printf( "Print Error %ld", err ) ;
|
||||||
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
||||||
dialog.ShowModal();
|
dialog.ShowModal();
|
||||||
}
|
}
|
||||||
@@ -252,7 +252,7 @@ void wxPrinterDC::StartPage(void)
|
|||||||
err = PrError() ;
|
err = PrError() ;
|
||||||
if ( err != noErr )
|
if ( err != noErr )
|
||||||
{
|
{
|
||||||
message.Printf( "Print Error %d", err ) ;
|
message.Printf( "Print Error %ld", err ) ;
|
||||||
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
||||||
dialog.ShowModal();
|
dialog.ShowModal();
|
||||||
::PrClosePage( (TPPrPort) m_macPrintSessionPort ) ;
|
::PrClosePage( (TPPrPort) m_macPrintSessionPort ) ;
|
||||||
@@ -271,7 +271,7 @@ void wxPrinterDC::StartPage(void)
|
|||||||
#endif
|
#endif
|
||||||
if ( err != noErr )
|
if ( err != noErr )
|
||||||
{
|
{
|
||||||
message.Printf( "Print Error %d", err ) ;
|
message.Printf( "Print Error %ld", err ) ;
|
||||||
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
||||||
dialog.ShowModal();
|
dialog.ShowModal();
|
||||||
#if PM_USE_SESSION_APIS
|
#if PM_USE_SESSION_APIS
|
||||||
@@ -302,7 +302,7 @@ void wxPrinterDC::EndPage(void)
|
|||||||
err = PrError() ;
|
err = PrError() ;
|
||||||
if ( err != noErr )
|
if ( err != noErr )
|
||||||
{
|
{
|
||||||
message.Printf( "Print Error %d", err ) ;
|
message.Printf( "Print Error %ld", err ) ;
|
||||||
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
||||||
dialog.ShowModal();
|
dialog.ShowModal();
|
||||||
::PrCloseDoc( (TPPrPort) m_macPrintSessionPort ) ;
|
::PrCloseDoc( (TPPrPort) m_macPrintSessionPort ) ;
|
||||||
@@ -318,7 +318,7 @@ void wxPrinterDC::EndPage(void)
|
|||||||
#endif
|
#endif
|
||||||
if ( err != noErr )
|
if ( err != noErr )
|
||||||
{
|
{
|
||||||
message.Printf( "Print Error %d", err ) ;
|
message.Printf( "Print Error %ld", err ) ;
|
||||||
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
||||||
dialog.ShowModal();
|
dialog.ShowModal();
|
||||||
#if PM_USE_SESSION_APIS
|
#if PM_USE_SESSION_APIS
|
||||||
|
Reference in New Issue
Block a user