avoid a warning about unused function in release build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60183 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
6e2f308461
commit
d021f94fd6
@ -46,6 +46,8 @@
|
||||
// wxWindowsPrintNativeData
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
#if wxDEBUG_LEVEL
|
||||
|
||||
static wxString wxGetPrintDlgError()
|
||||
{
|
||||
DWORD err = CommDlgExtendedError();
|
||||
@ -79,6 +81,9 @@ static wxString wxGetPrintDlgError()
|
||||
return msg;
|
||||
}
|
||||
|
||||
#endif // wxDEBUG_LEVEL
|
||||
|
||||
|
||||
static HGLOBAL
|
||||
wxCreateDevNames(const wxString& driverName,
|
||||
const wxString& printerName,
|
||||
@ -364,7 +369,9 @@ bool wxWindowsPrintNativeData::TransferFrom( const wxPrintData &data )
|
||||
pd.hDevMode = NULL;
|
||||
pd.hDevNames = NULL;
|
||||
|
||||
#ifdef wxDEBUG_LEVEL
|
||||
wxLogDebug(wxT("Printing error: ") + wxGetPrintDlgError());
|
||||
#endif // wxDEBUG_LEVEL
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user