From 6fee84f3838bdd900e8cfc4a1e4d7f15f35bd6ed Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 5 Sep 2012 21:48:30 +0300 Subject: Improve constructors in some classes. --- src/guichan/widgets/icon.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/guichan/widgets/icon.cpp') diff --git a/src/guichan/widgets/icon.cpp b/src/guichan/widgets/icon.cpp index b0d277fbd..a030e2413 100644 --- a/src/guichan/widgets/icon.cpp +++ b/src/guichan/widgets/icon.cpp @@ -57,6 +57,7 @@ namespace gcn { Icon::Icon() : + Widget(), mImage(nullptr), mInternalImage(false) { @@ -64,6 +65,7 @@ namespace gcn } Icon::Icon(const std::string& filename) : + Widget(), mImage(Image::load(filename)), mInternalImage(true) { @@ -72,6 +74,7 @@ namespace gcn } Icon::Icon(const Image *const image) : + Widget(), mImage(image), mInternalImage(false) { -- cgit v1.2.3-70-g09d2