projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove unnecessary base class OnPaint() call from wxGenericColourDialog.
[wxWidgets.git]
/
src
/
x11
/
dataobj.cpp
diff --git
a/src/x11/dataobj.cpp
b/src/x11/dataobj.cpp
index 1f2d5aaf0990a8bb7238a6934d7a239f5976475a..01e5cd9ed02d66f16ac9292ca0a39e6e9bc31fbf 100644
(file)
--- a/
src/x11/dataobj.cpp
+++ b/
src/x11/dataobj.cpp
@@
-57,12
+57,6
@@
wxDataFormat::wxDataFormat( wxDataFormatId type )
SetType( type );
}
SetType( type );
}
-wxDataFormat::wxDataFormat( const wxChar *id )
-{
- PrepareFormats();
- SetId( id );
-}
-
wxDataFormat::wxDataFormat( const wxString &id )
{
PrepareFormats();
wxDataFormat::wxDataFormat( const wxString &id )
{
PrepareFormats();
@@
-80,7
+74,7
@@
void wxDataFormat::SetType( wxDataFormatId type )
PrepareFormats();
m_type = type;
PrepareFormats();
m_type = type;
- if (m_type == wxDF_TEXT)
+ if (m_type == wxDF_TEXT
|| m_type == wxDF_UNICODETEXT
)
m_format = g_textAtom;
else
if (m_type == wxDF_BITMAP)
m_format = g_textAtom;
else
if (m_type == wxDF_BITMAP)
@@
-129,13
+123,12
@@
void wxDataFormat::SetId( NativeFormat format )
m_type = wxDF_PRIVATE;
}
m_type = wxDF_PRIVATE;
}
-void wxDataFormat::SetId( const wx
Char *
id )
+void wxDataFormat::SetId( const wx
String&
id )
{
#if !wxUSE_NANOX
PrepareFormats();
m_type = wxDF_PRIVATE;
{
#if !wxUSE_NANOX
PrepareFormats();
m_type = wxDF_PRIVATE;
- wxString tmp( id );
- m_format = XInternAtom( (Display*) wxGetDisplay(), tmp.ToAscii(), FALSE );
+ m_format = XInternAtom( (Display*) wxGetDisplay(), id.ToAscii(), FALSE );
#endif
}
#endif
}
@@
-250,12
+243,12
@@
bool wxFileDataObject::SetData(size_t WXUNUSED(size), const void *buf)
if ( (*p == '\r' && *(p+1) == '\n') || !*p )
{
size_t lenPrefix = 5; // strlen("file:")
if ( (*p == '\r' && *(p+1) == '\n') || !*p )
{
size_t lenPrefix = 5; // strlen("file:")
- if ( filename.Left(lenPrefix).MakeLower() ==
_
T("file:") )
+ if ( filename.Left(lenPrefix).MakeLower() ==
wx
T("file:") )
{
// sometimes the syntax is "file:filename", sometimes it's
// URL-like: "file://filename" - deal with both
{
// sometimes the syntax is "file:filename", sometimes it's
// URL-like: "file://filename" - deal with both
- if ( filename[lenPrefix] ==
_
T('/') &&
- filename[lenPrefix + 1] ==
_
T('/') )
+ if ( filename[lenPrefix] ==
wx
T('/') &&
+ filename[lenPrefix + 1] ==
wx
T('/') )
{
// skip the slashes
lenPrefix += 2;
{
// skip the slashes
lenPrefix += 2;
@@
-266,7
+259,7
@@
bool wxFileDataObject::SetData(size_t WXUNUSED(size), const void *buf)
}
else
{
}
else
{
- wxLogDebug(
_
T("Unsupported URI '%s' in wxFileDataObject"),
+ wxLogDebug(
wx
T("Unsupported URI '%s' in wxFileDataObject"),
filename.c_str());
}
filename.c_str());
}
@@
-356,7
+349,7
@@
bool wxBitmapDataObject::SetData(size_t size, const void *buf)
m_bitmap = image;
m_bitmap = image;
- return m_bitmap.Ok();
+ return m_bitmap.
Is
Ok();
#else
return false;
#endif
#else
return false;
#endif
@@
-365,7
+358,7
@@
bool wxBitmapDataObject::SetData(size_t size, const void *buf)
void wxBitmapDataObject::DoConvertToPng()
{
#if wxUSE_LIBPNG
void wxBitmapDataObject::DoConvertToPng()
{
#if wxUSE_LIBPNG
- if (!m_bitmap.Ok())
+ if (!m_bitmap.
Is
Ok())
return;
wxImage image = m_bitmap.ConvertToImage();
return;
wxImage image = m_bitmap.ConvertToImage();