]> git.saurik.com Git - wxWidgets.git/commitdiff
GCC warning fix. Minor cleanup.
authorWłodzimierz Skiba <abx@abx.art.pl>
Mon, 2 Oct 2006 11:18:35 +0000 (11:18 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Mon, 2 Oct 2006 11:18:35 +0000 (11:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/richtext/richtextstyles.h

index 89672946edd2e45953eb10557729d8ee738657cf..1ae57e621b5476c4a42e06cfdb206cb2738d0139 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        richtextstyles.h
+// Name:        wx/richtext/richtextstyles.h
 // Purpose:     Style management for wxRichTextCtrl
 // Author:      Julian Smart
 // Modified by:
  * 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(); }