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:
Vadim Zeitlin
2009-04-15 21:30:37 +00:00
parent 6e2f308461
commit d021f94fd6

View File

@@ -46,6 +46,8 @@
// wxWindowsPrintNativeData // wxWindowsPrintNativeData
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
#if wxDEBUG_LEVEL
static wxString wxGetPrintDlgError() static wxString wxGetPrintDlgError()
{ {
DWORD err = CommDlgExtendedError(); DWORD err = CommDlgExtendedError();
@@ -79,6 +81,9 @@ static wxString wxGetPrintDlgError()
return msg; return msg;
} }
#endif // wxDEBUG_LEVEL
static HGLOBAL static HGLOBAL
wxCreateDevNames(const wxString& driverName, wxCreateDevNames(const wxString& driverName,
const wxString& printerName, const wxString& printerName,
@@ -364,7 +369,9 @@ bool wxWindowsPrintNativeData::TransferFrom( const wxPrintData &data )
pd.hDevMode = NULL; pd.hDevMode = NULL;
pd.hDevNames = NULL; pd.hDevNames = NULL;
#ifdef wxDEBUG_LEVEL
wxLogDebug(wxT("Printing error: ") + wxGetPrintDlgError()); wxLogDebug(wxT("Printing error: ") + wxGetPrintDlgError());
#endif // wxDEBUG_LEVEL
} }
else else
{ {