Author: mir3x Date: Sat Jan 21 12:34:52 2017 New Revision: 34873 URL: http://svn.gna.org/viewcvs/freeciv?rev=34873&view=rev Log: Qt client - fixed downcast of XXX which does not point to an object of type chat_listener
See bug #25451 Modified: branches/S3_0/client/gui-qt/listener.h Modified: branches/S3_0/client/gui-qt/listener.h URL: http://svn.gna.org/viewcvs/freeciv/branches/S3_0/client/gui-qt/listener.h?rev=34873&r1=34872&r2=34873&view=diff ============================================================================== --- branches/S3_0/client/gui-qt/listener.h (original) +++ branches/S3_0/client/gui-qt/listener.h Sat Jan 21 12:34:52 2017 @@ -159,7 +159,7 @@ template<class _type_> listener<_type_>::~listener() { - instances.erase(static_cast<type_t *>(this)); + instances.erase(reinterpret_cast<type_t *>(this)); } /*************************************************************************** _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits