Author: mir3x
Date: Sat Jan 21 12:34:32 2017
New Revision: 34872

URL: http://svn.gna.org/viewcvs/freeciv?rev=34872&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/S2_6/client/gui-qt/listener.h

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