Include wx/app.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38945 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -16,9 +16,9 @@
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/log.h"
|
||||
#include "wx/app.h"
|
||||
#endif
|
||||
|
||||
#include "wx/app.h"
|
||||
#include "wx/debug.h"
|
||||
#include "wx/mstream.h"
|
||||
#include "wx/image.h"
|
||||
@@ -239,7 +239,7 @@ bool wxFileDataObject::GetDataHere(void *buf) const
|
||||
|
||||
memcpy( buf, filenames.mbc_str(), filenames.Len() + 1 );
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
size_t wxFileDataObject::GetDataSize() const
|
||||
@@ -303,7 +303,7 @@ bool wxFileDataObject::SetData(size_t WXUNUSED(size), const void *buf)
|
||||
}
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
void wxFileDataObject::AddFile( const wxString &filename )
|
||||
@@ -348,12 +348,12 @@ bool wxBitmapDataObject::GetDataHere(void *buf) const
|
||||
{
|
||||
wxFAIL_MSG( wxT("attempt to copy empty bitmap failed") );
|
||||
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
memcpy(buf, m_pngData, m_pngSize);
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool wxBitmapDataObject::SetData(size_t size, const void *buf)
|
||||
@@ -361,7 +361,7 @@ bool wxBitmapDataObject::SetData(size_t size, const void *buf)
|
||||
Clear();
|
||||
|
||||
wxCHECK_MSG( wxImage::FindHandler(wxBITMAP_TYPE_PNG) != NULL,
|
||||
FALSE, wxT("You must call wxImage::AddHandler(new wxPNGHandler); to be able to use clipboard with bitmaps!") );
|
||||
false, wxT("You must call wxImage::AddHandler(new wxPNGHandler); to be able to use clipboard with bitmaps!") );
|
||||
|
||||
m_pngSize = size;
|
||||
m_pngData = malloc(m_pngSize);
|
||||
@@ -372,7 +372,7 @@ bool wxBitmapDataObject::SetData(size_t size, const void *buf)
|
||||
wxImage image;
|
||||
if ( !image.LoadFile( mstream, wxBITMAP_TYPE_PNG ) )
|
||||
{
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
m_bitmap = wxBitmap(image);
|
||||
|
Reference in New Issue
Block a user