mail[Wesnoth-commits] r24898 - /trunk/src/formula_function.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by dragonking on March 20, 2008 - 12:57:
Author: dragonking
Date: Thu Mar 20 12:57:03 2008
New Revision: 24898

URL: http://svn.gna.org/viewcvs/wesnoth?rev=24898&view=rev
Log:
Make trunk compile again without warnings - gcc wants virtual destructors for 
classes with virtual functions

Modified:
    trunk/src/formula_function.cpp

Modified: trunk/src/formula_function.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/formula_function.cpp?rev=24898&r1=24897&r2=24898&view=diff
==============================================================================
--- trunk/src/formula_function.cpp (original)
+++ trunk/src/formula_function.cpp Thu Mar 20 12:57:03 2008
@@ -594,6 +594,7 @@
 class base_function_creator {
 public:
        virtual expression_ptr create_function(const 
std::vector<expression_ptr>& args) const = 0;
+       virtual ~base_function_creator() {}
 };
 
 template<typename T>
@@ -602,6 +603,7 @@
        virtual expression_ptr create_function(const 
std::vector<expression_ptr>& args) const {
                return expression_ptr(new T(args));
        }
+       virtual ~function_creator() {}
 };
 
 typedef std::map<std::string, base_function_creator*> functions_map;




Related Messages


Powered by MHonArc, Updated Thu Mar 20 13:41:16 2008