X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6670f56440ae9209b3e2e51e06acf3bc5aaf1905..cdc059191b6e36808967b8b1efecc8f5a6cd769e:/src/os2/dataobj.cpp diff --git a/src/os2/dataobj.cpp b/src/os2/dataobj.cpp index 683c8a4ed4..137101f053 100644 --- a/src/os2/dataobj.cpp +++ b/src/os2/dataobj.cpp @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////////// -// Name: os2/dataobj.cpp +// Name: src/os2/dataobj.cpp // Purpose: implementation of wx[I]DataObject class // Author: David Webster // Modified by: @@ -17,10 +17,6 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ - #pragma implementation "dataobj.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -36,8 +32,7 @@ #include "wx/mstream.h" #include "wx/image.h" -#define INCL_DOS -#include +#include "wx/os2/private.h" // ---------------------------------------------------------------------------- // functions @@ -102,7 +97,7 @@ bool CIDataObject::GetData ( const wxDataFormat& rFormat, { QueryGetData(rFormat); if (rFormat.GetType() == wxDF_INVALID) - return FALSE; + return false; ULONG ulSize = m_pDataObject->GetDataSize(rFormat); @@ -111,7 +106,7 @@ bool CIDataObject::GetData ( const wxDataFormat& rFormat, // // It probably means that the method is just not implemented // - return FALSE; + return false; } if (rFormat.GetType() == wxDF_PRIVATE) { @@ -123,7 +118,7 @@ bool CIDataObject::GetData ( const wxDataFormat& rFormat, } if (ulSize > ulLen) // not enough room to copy - return FALSE; + return false; // // Copy the data @@ -307,16 +302,13 @@ bool wxBitmapDataObject::GetDataHere( void* pBuf ) const if (!m_pngSize) { wxFAIL_MSG(wxT("attempt to copy empty bitmap failed")); - return FALSE; + return false; } memcpy(pBuf, m_pngData, m_pngSize); return true; } -bool wxBitmapDataObject::SetData( - size_t nSize -, const void* pBuf -) +bool wxBitmapDataObject::SetData( size_t nSize, const void* pBuf) { Clear(); m_pngSize = nSize; @@ -331,7 +323,7 @@ bool wxBitmapDataObject::SetData( if (!vHandler.LoadFile(&vImage, vMstream)) { - return FALSE; + return false; } m_bitmap = wxBitmap(vImage);