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/popup.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/gui/popup.cpp') diff --git a/src/gui/popup.cpp b/src/gui/popup.cpp index b7dd6a58..47c3c43c 100644 --- a/src/gui/popup.cpp +++ b/src/gui/popup.cpp @@ -50,8 +50,8 @@ class PopupConfigListener : public ConfigListener } }; -Popup::Popup(const std::string& name, Window *parent, - const std::string& skin): +Popup::Popup(const std::string &name, Window *parent, + const std::string &skin): mParent(parent), mPopupName(name), mMinWidth(100), @@ -170,22 +170,22 @@ void Popup::setLocationRelativeTo(gcn::Widget *widget) getY() + (wy + (widget->getHeight() - getHeight()) / 2 - y)); } -void Popup::setMinWidth(unsigned int width) +void Popup::setMinWidth(int width) { mMinWidth = width > mSkin->getMinWidth() ? width : mSkin->getMinWidth(); } -void Popup::setMinHeight(unsigned int height) +void Popup::setMinHeight(int height) { mMinHeight = height > mSkin->getMinHeight() ? height : mSkin->getMinHeight(); } -void Popup::setMaxWidth(unsigned int width) +void Popup::setMaxWidth(int width) { mMaxWidth = width; } -void Popup::setMaxHeight(unsigned int height) +void Popup::setMaxHeight(int height) { mMaxHeight = height; } @@ -206,4 +206,3 @@ void Popup::setGuiAlpha() mAlphaChanged = false; } - -- cgit v1.2.3-70-g09d2