Author: mordante
Date: Fri Jul 18 20:06:52 2008
New Revision: 28073

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28073&view=rev
Log:
Initialize all members.

Modified:
    trunk/src/image.cpp

Modified: trunk/src/image.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/image.cpp?rev=28073&r1=28072&r2=28073&view=diff
==============================================================================
--- trunk/src/image.cpp (original)
+++ trunk/src/image.cpp Fri Jul 18 20:06:52 2008
@@ -132,12 +132,14 @@
 }
 
 locator::locator() :
-       index_(-1)
+       index_(-1),
+       val_()
 {
 }
 
 locator::locator(const locator &a, const std::string& mods):
-        val_(a.val_)
+       index_(-1),
+       val_(a.val_)
 {
        if(mods.size()){
                        val_.modifications_ += mods;
@@ -148,6 +150,7 @@
 }
 
 locator::locator(const char *filename) :
+       index_(-1),
        val_(filename)
 {
        parse_arguments();
@@ -155,6 +158,7 @@
 }
 
 locator::locator(const std::string &filename) :
+       index_(-1),
        val_(filename)
 {
        parse_arguments();
@@ -162,25 +166,31 @@
 }
 
 locator::locator(const char *filename, const std::string& modifications) :
+       index_(-1),
        val_(filename, modifications)
 {
        init_index();
 }
 
 locator::locator(const std::string &filename, const std::string& 
modifications) :
+       index_(-1),
        val_(filename, modifications)
 {
        init_index();
 }
 
-locator::locator(const std::string &filename, const gamemap::location &loc, 
const std::string& modifications) :
+locator::locator(const std::string &filename, 
+               const gamemap::location &loc, const std::string& modifications) 
:
+       index_(-1),
        val_(filename, loc, modifications)
 {
        init_index();
 }
 
-    locator::locator(const std::string &filename, const gamemap::location 
&loc, int center_x, int center_y, const std::string& modifications) :
-        val_(filename, loc, center_x, center_y, modifications)
+locator::locator(const std::string &filename, const gamemap::location &loc, 
+               int center_x, int center_y, const std::string& modifications) :
+       index_(-1),
+       val_(filename, loc, center_x, center_y, modifications)
 {
        init_index();
 }


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to