]> git.saurik.com Git - wxWidgets.git/commitdiff
Explicitly call base class ctor in wxRichTextFieldType copy ctor.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 7 Jul 2012 13:27:36 +0000 (13:27 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 7 Jul 2012 13:27:36 +0000 (13:27 +0000)
Failure to do this provokes g++ warnings with -Wextra and is, generally
speaking, wrong, even if it probably doesn't matter in this particular case.

See #14459.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71972 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/richtext/richtextbuffer.h

index 1a644eac9adf98947c22303fb676cd3126d41ea0..cc28edbc5ee0fb6927436851686bcb104693fb12 100644 (file)
@@ -3613,7 +3613,9 @@ public:
     /**
         Copy constructor.
     */
-    wxRichTextFieldType(const wxRichTextFieldType& fieldType) { Copy(fieldType); }
+    wxRichTextFieldType(const wxRichTextFieldType& fieldType)
+        : wxObject(fieldType)
+    { Copy(fieldType); }
 
     void Copy(const wxRichTextFieldType& fieldType) { m_name = fieldType.m_name; }
 
@@ -3766,7 +3768,9 @@ public:
         The copy constructor.
 
     */
-    wxRichTextFieldTypeStandard(const wxRichTextFieldTypeStandard& field) { Copy(field); }
+    wxRichTextFieldTypeStandard(const wxRichTextFieldTypeStandard& field)
+        : wxRichTextFieldType(field)
+    { Copy(field); }
 
     /**
         Initialises the object.