[libfake437] r329 committed - src/libfake437++/surface.cpp: Use initialiser list in ctor.

1 view
Skip to first unread message

libfa...@googlecode.com

unread,
Jan 1, 2010, 10:28:56 PM1/1/10
to libfake43...@googlegroups.com
Revision: 329
Author: endgame.dos
Date: Fri Jan 1 19:06:06 2010
Log: src/libfake437++/surface.cpp: Use initialiser list in ctor.
http://code.google.com/p/libfake437/source/detail?r=329

Modified:
/trunk/src/libfake437++/surface.cpp

=======================================
--- /trunk/src/libfake437++/surface.cpp Fri Jan 1 19:05:51 2010
+++ /trunk/src/libfake437++/surface.cpp Fri Jan 1 19:06:06 2010
@@ -22,10 +22,8 @@
#include "fake437/surface.hpp"

namespace fake437 {
-
- Surface::Surface(SDL_Surface* surface, const F437Font* font) {
- this->surface = f437_surface_new(surface, font);
- }
+ Surface::Surface(SDL_Surface* surface, const F437Font* font):
+ surface(f437_surface_new(surface, font)) {}

Surface::~Surface(void) {
f437_surface_free(this->surface);
@@ -75,5 +73,4 @@
f437_surface_put_string(this->surface, left, top, string.c_str(),
f437_get_color(fg), f437_get_color(bg));
}
-
-}
+}

Reply all
Reply to author
Forward
0 new messages