mail[Wesnoth-commits] r20030 - /trunk/src/sdl_utils.hpp


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:03:
Author: torangan
Date: Sat Sep  1 18:03:10 2007
New Revision: 20030

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

Modified:
    trunk/src/sdl_utils.hpp

Modified: trunk/src/sdl_utils.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/sdl_utils.hpp?rev=20030&r1=20029&r2=20030&view=diff
==============================================================================
--- trunk/src/sdl_utils.hpp (original)
+++ trunk/src/sdl_utils.hpp Sat Sep  1 18:03:10 2007
@@ -160,11 +160,11 @@
        pixel_data(int red, int green, int blue) : r(red), g(green), b(blue)
        {}
 
-       pixel_data(int pixel, SDL_PixelFormat* fmt) {
+       pixel_data(int pixel, SDL_PixelFormat* fmt) : r(0), g(0), b(0) {
                unformat(pixel, fmt);
        }
 
-       pixel_data(config& cfg) {
+       pixel_data(config& cfg) : r(0), g(0), b(0) {
                read(cfg);
        }
 
@@ -229,7 +229,7 @@
 
 struct clip_rect_setter
 {
-       clip_rect_setter(surface const &surf, const SDL_Rect& r) : 
surface_(surf)
+       clip_rect_setter(surface const &surf, const SDL_Rect& r) : 
surface_(surf), rect()
        {
                SDL_GetClipRect(surface_,&rect);
                SDL_SetClipRect(surface_,&r);




Related Messages


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