mail[Wesnoth-commits] r20035 - /trunk/src/filesystem.cpp


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

Header


Content

Posted by david on September 01, 2007 - 18:10:
Author: torangan
Date: Sat Sep  1 18:10:08 2007
New Revision: 20035

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

Modified:
    trunk/src/filesystem.cpp

Modified: trunk/src/filesystem.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/filesystem.cpp?rev=20035&r1=20034&r2=20035&view=diff
==============================================================================
--- trunk/src/filesystem.cpp (original)
+++ trunk/src/filesystem.cpp Sat Sep  1 18:10:08 2007
@@ -837,11 +837,11 @@
     : nfiles(0), sum_size(0), modified(0)
 {}
 
-file_tree_checksum::file_tree_checksum(const config& cfg)
-{
-       nfiles = lexical_cast_default<size_t>(cfg["nfiles"]);
-       sum_size = lexical_cast_default<size_t>(cfg["size"]);
-       modified = lexical_cast_default<time_t>(cfg["modified"]);
+file_tree_checksum::file_tree_checksum(const config& cfg) :
+       nfiles  (lexical_cast_default<size_t>(cfg["nfiles"])),
+       sum_size(lexical_cast_default<size_t>(cfg["size"])),
+       modified(lexical_cast_default<time_t>(cfg["modified"]))
+{
 }
 
 void file_tree_checksum::write(config& cfg) const
@@ -960,10 +960,10 @@
        }
 }
 
-binary_paths_manager::binary_paths_manager()
+binary_paths_manager::binary_paths_manager() : paths_()
 {}
 
-binary_paths_manager::binary_paths_manager(const config& cfg)
+binary_paths_manager::binary_paths_manager(const config& cfg) : paths_()
 {
        set_paths(cfg);
 }




Related Messages


Powered by MHonArc, Updated Sat Sep 01 18:20:12 2007