GlobalFree(pd.hDevMode);
pd.hDevMode=NULL;
}
- return ( deviceName != wxEmptyString );
+ return ( !deviceName.empty() );
}
// Gets an HDC for the specified printer configuration
if ( !(::GetDeviceCaps(GetHdc(), RASTERCAPS) & RC_STRETCHDIB) ||
!DrawBitmapUsingStretchDIBits(GetHdc(), bmp, x, y) )
{
- // no support for StretchDIBits() or an error occured if we got here
+ // no support for StretchDIBits() or an error occurred if we got here
wxMemoryDC memDC;
memDC.SelectObject(bmp);