From b3298d1d26548e3015f08a68bdb5d5d9be4bcd9f Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Mon, 2 Oct 2006 11:18:35 +0000 Subject: [PATCH] GCC warning fix. Minor cleanup. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/richtext/richtextstyles.h | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/include/wx/richtext/richtextstyles.h b/include/wx/richtext/richtextstyles.h index 89672946ed..1ae57e621b 100644 --- a/include/wx/richtext/richtextstyles.h +++ b/include/wx/richtext/richtextstyles.h @@ -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(); } -- 2.47.2