projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add wxCALL_FOR_EACH() macro.
[wxWidgets.git]
/
src
/
os2
/
dataobj.cpp
diff --git
a/src/os2/dataobj.cpp
b/src/os2/dataobj.cpp
index 137101f053e664958bebd49f2f6e21411b88c2ff..be55a32aef8f159f322bb8b5c9ed7ed8342d725d 100644
(file)
--- a/
src/os2/dataobj.cpp
+++ b/
src/os2/dataobj.cpp
@@
-20,17
+20,17
@@
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
+#if wxUSE_DATAOBJ
+
+#include "wx/dataobj.h"
+
#ifndef WX_PRECOMP
#ifndef WX_PRECOMP
- #include "wx/defs.h"
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/intl.h"
#include "wx/log.h"
+ #include "wx/image.h"
#endif
#endif
-#if wxUSE_DATAOBJ
-
-#include "wx/dataobj.h"
#include "wx/mstream.h"
#include "wx/mstream.h"
-#include "wx/image.h"
#include "wx/os2/private.h"
#include "wx/os2/private.h"
@@
-57,11
+57,11
@@
wxString wxDataFormat::GetId() const
} // end of wxDataFormat::GetId()
void wxDataFormat::SetId (
} // end of wxDataFormat::GetId()
void wxDataFormat::SetId (
- const wx
Char*
zId
+ const wx
String&
zId
)
{
m_uFormat = ::WinAddAtom( ::WinQuerySystemAtomTable()
)
{
m_uFormat = ::WinAddAtom( ::WinQuerySystemAtomTable()
- ,
(PSZ)zId
+ ,
zId.char_str()
);
} // end of wxDataFormat::SetId
);
} // end of wxDataFormat::SetId
@@
-230,7
+230,7
@@
bool wxFileDataObject::GetDataHere( void* pBuf ) const
sFilenames += (wxChar)0;
}
sFilenames += (wxChar)0;
}
- memcpy(pBuf, sFilenames.mbc_str(), sFilenames.
Len
() + 1);
+ memcpy(pBuf, sFilenames.mbc_str(), sFilenames.
length
() + 1);
return true;
}
return true;
}
@@
-240,7
+240,7
@@
size_t wxFileDataObject::GetDataSize() const
for (size_t i = 0; i < m_filenames.GetCount(); i++)
{
for (size_t i = 0; i < m_filenames.GetCount(); i++)
{
- nRes += m_filenames[i].
Len
();
+ nRes += m_filenames[i].
length
();
nRes += 1;
}
nRes += 1;
}
@@
-329,12
+329,12
@@
bool wxBitmapDataObject::SetData( size_t nSize, const void* pBuf)
m_bitmap = wxBitmap(vImage);
#endif //wxUSE_STREAMS
m_bitmap = wxBitmap(vImage);
#endif //wxUSE_STREAMS
- return m_bitmap.Ok();
+ return m_bitmap.
Is
Ok();
}
void wxBitmapDataObject::DoConvertToPng()
{
}
void wxBitmapDataObject::DoConvertToPng()
{
- if (!m_bitmap.Ok())
+ if (!m_bitmap.
Is
Ok())
return;
#if wxUSE_STREAMS
return;
#if wxUSE_STREAMS