Added wxTB_NODIVIDER and wxTB_NOALIGN so native Windows toolbar can
used in FL. Adjusted Windows toolbar height for wxTB_NODIVIDER style. Removed some false memory leak reporting from fontmap.cpp, mimecmn.cpp, strconv.cpp. Added and used MapBitmap function in newbmpbtn.cpp so the right colours are used under Windows. <controversial>Added iniconf.cpp to WIN32 compilation</conroversial> git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14936 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -42,6 +42,7 @@
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "wx/module.h"
|
||||
#include "wx/strconv.h"
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -58,6 +59,22 @@
|
||||
|
||||
WXDLLEXPORT_DATA(wxMBConv *) wxConvCurrent = &wxConvLibc;
|
||||
|
||||
class wxStrConvModule: public wxModule
|
||||
{
|
||||
public:
|
||||
wxStrConvModule() : wxModule() { }
|
||||
virtual bool OnInit() { return TRUE; }
|
||||
virtual void OnExit()
|
||||
{
|
||||
wxConvLocal.Clear();
|
||||
}
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxStrConvModule)
|
||||
};
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxStrConvModule, wxModule)
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// headers
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -898,8 +915,17 @@ wxCSConv::wxCSConv(const wxChar *charset)
|
||||
|
||||
wxCSConv::~wxCSConv()
|
||||
{
|
||||
free(m_name);
|
||||
delete m_cset;
|
||||
Clear();
|
||||
}
|
||||
|
||||
void wxCSConv::Clear()
|
||||
{
|
||||
if (m_name)
|
||||
free(m_name);
|
||||
if (m_cset)
|
||||
delete m_cset;
|
||||
m_name = NULL;
|
||||
m_cset = NULL;
|
||||
}
|
||||
|
||||
void wxCSConv::SetName(const wxChar *charset)
|
||||
|
Reference in New Issue
Block a user