mail[Wesnoth-commits] r28914 - /trunk/src/editor2/editor_layout.cpp


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

Header


Content

Posted by koraq on August 24, 2008 - 11:57:
Author: mordante
Date: Sun Aug 24 11:57:51 2008
New Revision: 28914

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

Modified:
    trunk/src/editor2/editor_layout.cpp

Modified: trunk/src/editor2/editor_layout.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/editor2/editor_layout.cpp?rev=28914&r1=28913&r2=28914&view=diff
==============================================================================
--- trunk/src/editor2/editor_layout.cpp (original)
+++ trunk/src/editor2/editor_layout.cpp Sun Aug 24 11:57:51 2008
@@ -26,18 +26,19 @@
 
 namespace editor2 {
 
-size_specs::size_specs() {
-       terrain_size = default_terrain_size;
-       terrain_padding = 2;
-       terrain_space = terrain_size + terrain_padding;
-       terrain_width = default_palette_width;
-       brush_x = 0;
-       brush_y = 0;
-       brush_padding = 1;
-       palette_x = 0;
-       palette_y = 0;
-       palette_w = 10;
-       palette_h = 20;
+size_specs::size_specs() 
+       : terrain_size(default_terrain_size)
+       , terrain_padding(2)
+       , terrain_space(terrain_size + terrain_padding)
+       , terrain_width(default_palette_width)
+       , palette_x(0)
+       , palette_y(0)
+       , palette_h(20)
+       , palette_w(10)
+       , brush_x(0)
+       , brush_y(0)
+       , brush_padding(1)
+{
 }
 
 void adjust_sizes(const display &disp, size_specs &sizes) {




Related Messages


Powered by MHonArc, Updated Sun Aug 24 12:02:23 2008