Author: mordante
Date: Sun Jul 13 16:55:11 2008
New Revision: 27988
URL: http://svn.gna.org/viewcvs/wesnoth?rev=27988&view=rev
Log:
Initialize all members.
Modified:
trunk/src/formula.cpp
Modified: trunk/src/formula.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/formula.cpp?rev=27988&r1=27987&r2=27988&view=diff
==============================================================================
--- trunk/src/formula.cpp (original)
+++ trunk/src/formula.cpp Sun Jul 13 16:55:11 2008
@@ -34,7 +34,10 @@
}
map_formula_callable::map_formula_callable(
- const formula_callable* fallback) : formula_callable(false),
fallback_(fallback)
+ const formula_callable* fallback) :
+ formula_callable(false),
+ values_(),
+ fallback_(fallback)
{}
map_formula_callable& map_formula_callable::add(const std::string& key,
@@ -131,8 +134,9 @@
class unary_operator_expression : public formula_expression {
public:
- unary_operator_expression(const std::string& op, expression_ptr arg)
- : operand_(arg)
+ unary_operator_expression(const std::string& op, expression_ptr arg) :
+ op_(),
+ operand_(arg)
{
if(op == "not") {
op_ = NOT;
@@ -390,7 +394,9 @@
class string_expression : public formula_expression {
public:
- explicit string_expression(std::string str)
+ explicit string_expression(std::string str) :
+ str_(),
+ subs_()
{
std::string::iterator i;
while((i = std::find(str.begin(), str.end(), '{')) !=
str.end()) {
@@ -430,6 +436,13 @@
}
struct substitution {
+
+ substitution() :
+ pos(0),
+ calculation()
+ {
+ }
+
int pos;
const_formula_ptr calculation;
};
@@ -794,7 +807,9 @@
}
}
-formula::formula(const std::string& str, function_symbol_table* symbols) :
str_(str)
+formula::formula(const std::string& str, function_symbol_table* symbols) :
+ expr_(),
+ str_(str)
{
using namespace formula_tokenizer;
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits