X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fb46a9a6c6f291806a5fecbb848930c344e17e11..0b7e6e7da208b6a95fb23cb50286a09dc90d96d2:/src/os2/dcprint.cpp diff --git a/src/os2/dcprint.cpp b/src/os2/dcprint.cpp index d6e1ee7922..7f9139ce16 100644 --- a/src/os2/dcprint.cpp +++ b/src/os2/dcprint.cpp @@ -27,16 +27,14 @@ #include "wx/dcprint.h" #include "math.h" -#if !USE_SHARED_LIBRARY IMPLEMENT_CLASS(wxPrinterDC, wxDC) -#endif // This form is deprecated wxPrinterDC::wxPrinterDC(const wxString& driver_name, const wxString& device_name, const wxString& file, bool interactive, int orientation) { - LONG lType; - HAB hab; + LONG lType = 0; + HAB hab = 0; DEVOPENSTRUC devOpen = { (char*)device_name.c_str() ,(char*)driver_name.c_str() ,NULL @@ -284,7 +282,7 @@ static bool wxGetDefaultDeviceName(wxString& deviceName, wxString& portName) // Gets an HDC for the specified printer configuration WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& printDataConst) { - HDC hDC; + HDC hDC = NULLHANDLE; /* wxPrintData printData = printDataConst; printData.ConvertToNative();