X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fdf7514a009227ebf09cf8e184b3d96aa33eb026..e4940febd0aa35a8b70fe3244beab9604c1dd3d7:/include/wx/fontutil.h diff --git a/include/wx/fontutil.h b/include/wx/fontutil.h index e2243613dc..56099b4758 100644 --- a/include/wx/fontutil.h +++ b/include/wx/fontutil.h @@ -136,9 +136,21 @@ public: wxNativeFontInfo() { Init(); } #if wxUSE_PANGO - wxNativeFontInfo(const wxNativeFontInfo& info); - ~wxNativeFontInfo(); -#endif +private: + void Init(const wxNativeFontInfo& info); + void Free(); + +public: + wxNativeFontInfo(const wxNativeFontInfo& info) { Init(info); } + ~wxNativeFontInfo() { Free(); } + + wxNativeFontInfo& operator=(const wxNativeFontInfo& info) + { + Free(); + Init(info); + return *this; + } +#endif // wxUSE_PANGO // reset to the default state void Init();