Author: mir3x
Date: Sat Jan 21 12:35:12 2017
New Revision: 34874

URL: http://svn.gna.org/viewcvs/freeciv?rev=34874&view=rev
Log:
Qt client - fixed downcast of XXX which does not point to an object of type 
chat_listener

See bug #25451


Modified:
    trunk/client/gui-qt/listener.h

Modified: trunk/client/gui-qt/listener.h
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-qt/listener.h?rev=34874&r1=34873&r2=34874&view=diff
==============================================================================
--- trunk/client/gui-qt/listener.h      (original)
+++ trunk/client/gui-qt/listener.h      Sat Jan 21 12:35:12 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

Reply via email to