diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-05 21:48:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-05 21:48:30 +0300 |
commit | 6fee84f3838bdd900e8cfc4a1e4d7f15f35bd6ed (patch) | |
tree | 79a54d4c838c85df29b1b95702b71a95c43ceb5a /src/guichan/widgets/icon.cpp | |
parent | d1bb1b375d657f0821ccfebf18fa1c3873314690 (diff) | |
download | manaverse-6fee84f3838bdd900e8cfc4a1e4d7f15f35bd6ed.tar.gz manaverse-6fee84f3838bdd900e8cfc4a1e4d7f15f35bd6ed.tar.bz2 manaverse-6fee84f3838bdd900e8cfc4a1e4d7f15f35bd6ed.tar.xz manaverse-6fee84f3838bdd900e8cfc4a1e4d7f15f35bd6ed.zip |
Improve constructors in some classes.
Diffstat (limited to 'src/guichan/widgets/icon.cpp')
-rw-r--r-- | src/guichan/widgets/icon.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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) { |