[wx-dev] [ wxwindows-Patches-1679337 ] Bug Fixes for wxCocoa

Stefan Csomor csomor at advancedconcepts.ch
Thu Mar 15 00:07:52 PDT 2007


Hi

in tlw::Create you replace

-	 [m_cocoaNSWindow setTitle:wxNSStringWithWxString(title)];
+	SetTitle(title);

since Create may be called from a constructor directly, calling SetTitle
which is a virtual and might end up calling directly a derived not yet
completely constructed instance IMHO is a potential risk

Thoughts and opinions on that ?

Thanks,

Stefan







More information about the wx-dev mailing list