summaryrefslogtreecommitdiff
path: root/src/gui/popup.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-03-25 23:42:57 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-03-25 23:42:57 +0100
commitcd20fb3432498b8871401bdd65a143197e2a6538 (patch)
tree1edd3e20e3501de5315fa5bfc46b8673ad40d5dd /src/gui/popup.cpp
parent4ba8c80791c15c144d66e6a9b23e878d3313fa26 (diff)
downloadmana-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/popup.cpp')
-rw-r--r--src/gui/popup.cpp13
1 files changed, 6 insertions, 7 deletions
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;
}
-