From cd20fb3432498b8871401bdd65a143197e2a6538 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Wed, 25 Mar 2009 23:42:57 +0100 Subject: A host of code style fixes Mostly putting & and * in the right place and making some getters const. --- src/gui/palette.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/gui/palette.h') diff --git a/src/gui/palette.h b/src/gui/palette.h index 1a466ed4..fab8cd09 100644 --- a/src/gui/palette.h +++ b/src/gui/palette.h @@ -122,7 +122,7 @@ class Palette : public gcn::ListModel * * @return the requested color or Palette::BLACK */ - const gcn::Color& getColor(char c, bool &valid); + const gcn::Color &getColor(char c, bool &valid); /** * Gets the color associated with the type. Sets the alpha channel @@ -133,7 +133,7 @@ class Palette : public gcn::ListModel * * @return the requested color */ - inline const gcn::Color& getColor(ColorType type, int alpha = 255) + inline const gcn::Color &getColor(ColorType type, int alpha = 255) { gcn::Color* col = &mColVector[type].color; col->a = alpha; @@ -147,7 +147,7 @@ class Palette : public gcn::ListModel * * @return the requested committed color */ - inline const gcn::Color& getCommittedColor(ColorType type) + inline const gcn::Color &getCommittedColor(ColorType type) { return mColVector[type].committedColor; } @@ -159,7 +159,7 @@ class Palette : public gcn::ListModel * * @return the requested test color */ - inline const gcn::Color& getTestColor(ColorType type) + inline const gcn::Color &getTestColor(ColorType type) { return mColVector[type].testColor; } @@ -342,7 +342,7 @@ class Palette : public gcn::ListModel * * @return the transformed string */ - static std::string getConfigName(const std::string& typeName); + static std::string getConfigName(const std::string &typeName); }; extern Palette *guiPalette; -- cgit v1.2.3-70-g09d2