GCC warning fix. Minor cleanup.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2006-10-02 11:18:35 +00:00
parent f5ee98b65c
commit b3298d1d26

View File

@@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////////
// Name: richtextstyles.h
// Name: wx/richtext/richtextstyles.h
// Purpose: Style management for wxRichTextCtrl
// Author: Julian Smart
// Modified by:
@@ -16,10 +16,12 @@
* Includes
*/
#include "wx/richtext/richtextbuffer.h"
#include "wx/defs.h"
#if wxUSE_RICHTEXT
#include "wx/richtext/richtextbuffer.h"
#if wxUSE_HTML
#include "wx/htmllbox.h"
#endif
@@ -47,7 +49,11 @@ public:
// Constructors
wxRichTextStyleDefinition(const wxRichTextStyleDefinition& def) { Copy(def); }
wxRichTextStyleDefinition(const wxRichTextStyleDefinition& def)
: wxObject()
{
Copy(def);
}
wxRichTextStyleDefinition(const wxString& name = wxEmptyString) { Init(); m_name = name; }
virtual ~wxRichTextStyleDefinition() {}
@@ -135,7 +141,11 @@ class WXDLLIMPEXP_RICHTEXT wxRichTextStyleSheet: public wxObject
public:
/// Constructors
wxRichTextStyleSheet(const wxRichTextStyleSheet& sheet) { Copy(sheet); }
wxRichTextStyleSheet(const wxRichTextStyleSheet& sheet)
: wxObject()
{
Copy(sheet);
}
wxRichTextStyleSheet() { Init(); }
virtual ~wxRichTextStyleSheet() { DeleteStyles(); }