summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-01 13:57:45 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-01 14:33:36 +0300
commit96d3520f217a55a853b8c1a20f3975eee5c032b6 (patch)
treeed46540c5c3d6bd58d2fa31f8b5a7356157af19d /src/gui/widgets
parentc29c83721eccfb3589eb7ac7b0793e8ce3bc0aaa (diff)
downloadmv-96d3520f217a55a853b8c1a20f3975eee5c032b6.tar.gz
mv-96d3520f217a55a853b8c1a20f3975eee5c032b6.tar.bz2
mv-96d3520f217a55a853b8c1a20f3975eee5c032b6.tar.xz
mv-96d3520f217a55a853b8c1a20f3975eee5c032b6.zip
Fix code style.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/avatarlistbox.cpp3
-rw-r--r--src/gui/widgets/layouthelper.cpp3
-rw-r--r--src/gui/widgets/tabstrip.cpp2
-rw-r--r--src/gui/widgets/tabstrip.h2
-rw-r--r--src/gui/widgets/widgetgroup.h2
-rw-r--r--src/gui/widgets/window.h3
6 files changed, 9 insertions, 6 deletions
diff --git a/src/gui/widgets/avatarlistbox.cpp b/src/gui/widgets/avatarlistbox.cpp
index a3a4a2334..b33233d73 100644
--- a/src/gui/widgets/avatarlistbox.cpp
+++ b/src/gui/widgets/avatarlistbox.cpp
@@ -124,7 +124,8 @@ void AvatarListBox::draw(gcn::Graphics *gcnGraphics)
if (a->getType() != MapItem::SEPARATOR)
{
// Draw online status
- const Image *const icon = a->getOnline() ? onlineIcon : offlineIcon;
+ const Image *const icon = a->getOnline()
+ ? onlineIcon : offlineIcon;
if (icon)
graphics->drawImage(icon, 2, y + 1);
}
diff --git a/src/gui/widgets/layouthelper.cpp b/src/gui/widgets/layouthelper.cpp
index 9e93f6de5..e0dc82b8f 100644
--- a/src/gui/widgets/layouthelper.cpp
+++ b/src/gui/widgets/layouthelper.cpp
@@ -40,7 +40,8 @@ const Layout &LayoutHelper::getLayout() const
return mLayout;
}
-LayoutCell &LayoutHelper::place(const int x, const int y, gcn::Widget *const wg,
+LayoutCell &LayoutHelper::place(const int x, const int y,
+ gcn::Widget *const wg,
const int w, const int h)
{
mContainer->add(wg);
diff --git a/src/gui/widgets/tabstrip.cpp b/src/gui/widgets/tabstrip.cpp
index 3e408288d..8eb32e038 100644
--- a/src/gui/widgets/tabstrip.cpp
+++ b/src/gui/widgets/tabstrip.cpp
@@ -38,7 +38,7 @@ TabStrip::TabStrip(const int height, const int spacing) :
{
}
-gcn::Widget *TabStrip::createWidget(std::string text)
+gcn::Widget *TabStrip::createWidget(const std::string &text)
{
Button *const widget = new Button();
widget->setStick(true);
diff --git a/src/gui/widgets/tabstrip.h b/src/gui/widgets/tabstrip.h
index d7aa2a700..92d864b79 100644
--- a/src/gui/widgets/tabstrip.h
+++ b/src/gui/widgets/tabstrip.h
@@ -34,7 +34,7 @@ class TabStrip : public WidgetGroup
TabStrip(const int height, const int spacing = 0);
- gcn::Widget *createWidget(std::string name);
+ gcn::Widget *createWidget(const std::string &name);
void action(const gcn::ActionEvent &event);
};
diff --git a/src/gui/widgets/widgetgroup.h b/src/gui/widgets/widgetgroup.h
index d70aa977f..ad2ee4e64 100644
--- a/src/gui/widgets/widgetgroup.h
+++ b/src/gui/widgets/widgetgroup.h
@@ -46,7 +46,7 @@ class WidgetGroup : public Container,
void widgetResized(const gcn::Event &event);
- virtual Widget *createWidget(std::string name) = 0;
+ virtual Widget *createWidget(const std::string &name) = 0;
protected:
int mSpacing;
diff --git a/src/gui/widgets/window.h b/src/gui/widgets/window.h
index 38742a73e..2c6c0ab8e 100644
--- a/src/gui/widgets/window.h
+++ b/src/gui/widgets/window.h
@@ -89,7 +89,8 @@ class Window : public gcn::Window, private gcn::WidgetListener
/**
* Sets the location relative to the given widget (only horisontally)
*/
- void setLocationHorisontallyRelativeTo(const gcn::Widget *const widget);
+ void setLocationHorisontallyRelativeTo(const gcn::Widget
+ *const widget);
/**
* Sets the location relative to the given enumerated position.