Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37725958
en ru br
ALT Linux repositórios
S:1.0.2-alt3
5.0: 1.0.2-alt1
4.1: 1.0.2-alt0.M41.1
4.0: 1.0.2-alt0.M40.1
3.0: 0.9.0-alt10

Group :: Jogos/Enigmas
RPM: kiki

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: kiki-1.0.2-debian-virtual-destructors.patch
Download


Description: add missing virtual destructors
  GCC gives the following warning:
  deleting object of polymorphic class type KObject/KikiCharacter which has
  non-virtual destructor might cause undefined behaviour
  Fix this by adding empty virtual destructors. The warning is probably
  spurious for KikiCharacter but better safe than sorry.
Author: Peter De Wachter <pdewacht@gmail.com>
--- a/kodilib/src/tools/KNotificationObject.h
+++ b/kodilib/src/tools/KNotificationObject.h
@@ -17,6 +17,9 @@
 class KObject
 {
     INTROSPECTION
+
+public:
+    virtual ~KObject() { }
 };
 
 // --------------------------------------------------------------------------------------------------------
--- a/src/gui/KikiCharacter.h
+++ b/src/gui/KikiCharacter.h
@@ -20,6 +20,7 @@
     public: // ........................................................................ PUBLIC
     
                         KikiCharacter	( char );
+    virtual             ~KikiCharacter	() { }
     
     virtual void 	display 	();
     virtual void	render	 	();
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009