diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-03-25 23:42:57 +0100 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-03-25 23:42:57 +0100 |
commit | cd20fb3432498b8871401bdd65a143197e2a6538 (patch) | |
tree | 1edd3e20e3501de5315fa5bfc46b8673ad40d5dd /src/gui/skin.cpp | |
parent | 4ba8c80791c15c144d66e6a9b23e878d3313fa26 (diff) | |
download | mana-cd20fb3432498b8871401bdd65a143197e2a6538.tar.gz mana-cd20fb3432498b8871401bdd65a143197e2a6538.tar.bz2 mana-cd20fb3432498b8871401bdd65a143197e2a6538.tar.xz mana-cd20fb3432498b8871401bdd65a143197e2a6538.zip |
A host of code style fixes
Mostly putting & and * in the right place and making some getters const.
Diffstat (limited to 'src/gui/skin.cpp')
-rw-r--r-- | src/gui/skin.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/skin.cpp b/src/gui/skin.cpp index d44c54a8..27a0fa3d 100644 --- a/src/gui/skin.cpp +++ b/src/gui/skin.cpp @@ -29,9 +29,9 @@ #include "../utils/dtor.h" #include "../utils/xml.h" -SkinLoader* skinLoader = NULL; +SkinLoader *skinLoader = NULL; -Skin::Skin(ImageRect skin, Image* close, std::string name): +Skin::Skin(ImageRect skin, Image *close, std::string name): instances(0), mName(name), border(skin), @@ -63,7 +63,7 @@ unsigned int Skin::getMinHeight() border.grid[6]->getHeight(); } -Skin* SkinLoader::load(const std::string &filename) +Skin *SkinLoader::load(const std::string &filename) { SkinIterator skinIterator = mSkins.find(filename); @@ -172,9 +172,9 @@ Skin* SkinLoader::load(const std::string &filename) logger->log("Finished loading Skin."); // Hard-coded for now until we update the above code to look for window buttons. - Image* closeImage = resman->getImage("graphics/gui/close_button.png"); + Image *closeImage = resman->getImage("graphics/gui/close_button.png"); - Skin* skin = new Skin(border, closeImage); + Skin *skin = new Skin(border, closeImage); mSkins[filename] = skin; return skin; |