summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-11 02:15:50 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-11 02:15:50 +0300
commit8fa20d9e2aa173d4ed9632da7e707c69ce2841aa (patch)
tree009bae2a2cc8f9ca4f30401446424739a2ddbfc6 /src/gui
parent793ef9a791108d4940fca7f4158dbd4cacee96f2 (diff)
downloadplus-8fa20d9e2aa173d4ed9632da7e707c69ce2841aa.tar.gz
plus-8fa20d9e2aa173d4ed9632da7e707c69ce2841aa.tar.bz2
plus-8fa20d9e2aa173d4ed9632da7e707c69ce2841aa.tar.xz
plus-8fa20d9e2aa173d4ed9632da7e707c69ce2841aa.zip
Remove useless brackets.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/editserverdialog.cpp2
-rw-r--r--src/gui/inventorywindow.cpp2
-rw-r--r--src/gui/logindialog.cpp2
-rw-r--r--src/gui/setup_audio.cpp4
-rw-r--r--src/gui/setup_joystick.cpp2
-rw-r--r--src/gui/setup_other.cpp4
-rw-r--r--src/gui/skilldialog.cpp2
-rw-r--r--src/gui/socialwindow.cpp10
-rw-r--r--src/gui/widgets/button.cpp8
9 files changed, 18 insertions, 18 deletions
diff --git a/src/gui/editserverdialog.cpp b/src/gui/editserverdialog.cpp
index f51236513..601c9fc76 100644
--- a/src/gui/editserverdialog.cpp
+++ b/src/gui/editserverdialog.cpp
@@ -73,7 +73,7 @@ EditServerDialog::EditServerDialog(ServerDialog *const parent,
mConnectButton(new Button(this, _("Connect"), "connect", this)),
mOkButton(new Button(this, _("OK"), "addServer", this)),
mCancelButton(new Button(this, _("Cancel"), "cancel", this)),
- mTypeListModel(new TypeListModel()),
+ mTypeListModel(new TypeListModel),
mTypeField(new DropDown(this, mTypeListModel)),
mServerDialog(parent),
mServer(server),
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp
index 3bc8c4222..d875644f6 100644
--- a/src/gui/inventorywindow.cpp
+++ b/src/gui/inventorywindow.cpp
@@ -107,7 +107,7 @@ InventoryWindow::InventoryWindow(Inventory *const inventory):
mWeightBar(nullptr),
mSlotsBar(new ProgressBar(this, 0.0f, 100, 0, Theme::PROG_INVY_SLOTS)),
mFilter(nullptr),
- mSortModel(new SortListModel()),
+ mSortModel(new SortListModel),
mSortDropDown(new DropDown(this, mSortModel, this, "sort")),
mNameFilter(new TextField(this, "", true, this, "namefilter", true)),
mSortDropDownCell(nullptr),
diff --git a/src/gui/logindialog.cpp b/src/gui/logindialog.cpp
index 8b2ff0d7d..e971aa5bc 100644
--- a/src/gui/logindialog.cpp
+++ b/src/gui/logindialog.cpp
@@ -126,7 +126,7 @@ LoginDialog::LoginDialog(LoginData *const data, std::string serverName,
mLoginData->remember)),
mUpdateTypeLabel(new Label(this, _("Update:"))),
mUpdateHostLabel(nullptr),
- mUpdateTypeModel(new UpdateTypeModel()),
+ mUpdateTypeModel(new UpdateTypeModel),
mUpdateTypeDropDown(new DropDown(this, mUpdateTypeModel)),
mServerButton(new Button(this, _("Change Server"), "server", this)),
mLoginButton(new Button(this, _("Login"), "login", this)),
diff --git a/src/gui/setup_audio.cpp b/src/gui/setup_audio.cpp
index 15fd23d33..79bbc2d14 100644
--- a/src/gui/setup_audio.cpp
+++ b/src/gui/setup_audio.cpp
@@ -53,8 +53,8 @@ public:
Setup_Audio::Setup_Audio(const Widget2 *const widget) :
SetupTabScroll(widget),
- mSoundModel(new SoundsModel()),
- mChannelsList(new SetupItemNames())
+ mSoundModel(new SoundsModel),
+ mChannelsList(new SetupItemNames)
{
setName(_("Audio"));
diff --git a/src/gui/setup_joystick.cpp b/src/gui/setup_joystick.cpp
index 073667d57..f2a0ce144 100644
--- a/src/gui/setup_joystick.cpp
+++ b/src/gui/setup_joystick.cpp
@@ -46,7 +46,7 @@ Setup_Joystick::Setup_Joystick(const Widget2 *const widget) :
_("Press the button to start calibration"))),
mCalibrateButton(new Button(this, _("Calibrate"), "calibrate", this)),
mJoystickEnabled(new CheckBox(this, _("Enable joystick"))),
- mNamesModel(new NamesModel()),
+ mNamesModel(new NamesModel),
mNamesDropDown(new DropDown(this, mNamesModel)),
mUseInactiveCheckBox(new CheckBox(this, _("Use joystick if client "
"window inactive"), config.getBoolValue("useInactiveJoystick")))
diff --git a/src/gui/setup_other.cpp b/src/gui/setup_other.cpp
index c974a3aa5..0d6dc92ff 100644
--- a/src/gui/setup_other.cpp
+++ b/src/gui/setup_other.cpp
@@ -33,8 +33,8 @@
Setup_Other::Setup_Other(const Widget2 *const widget) :
SetupTabScroll(widget),
- mProxyTypeList(new SetupItemNames()),
- mShortcutsList(new SetupItemNames())
+ mProxyTypeList(new SetupItemNames),
+ mShortcutsList(new SetupItemNames)
{
setName(_("Misc"));
diff --git a/src/gui/skilldialog.cpp b/src/gui/skilldialog.cpp
index 02a177f4e..9f484de8d 100644
--- a/src/gui/skilldialog.cpp
+++ b/src/gui/skilldialog.cpp
@@ -96,7 +96,7 @@ class SkillListBox final : public ListBox
SkillListBox(const Widget2 *const widget, SkillModel *const model) :
ListBox(widget, model),
mModel(model),
- mPopup(new TextPopup()),
+ mPopup(new TextPopup),
mHighlightColor(getThemeColor(Theme::HIGHLIGHT)),
mTextColor(getThemeColor(Theme::TEXT))
{
diff --git a/src/gui/socialwindow.cpp b/src/gui/socialwindow.cpp
index bb59517e5..fd8114584 100644
--- a/src/gui/socialwindow.cpp
+++ b/src/gui/socialwindow.cpp
@@ -448,7 +448,7 @@ public:
SocialPlayersTab(const Widget2 *const widget,
std::string name, const bool showBackground) :
SocialTab(widget),
- mBeings(new BeingsListModal())
+ mBeings(new BeingsListModal)
{
mList = new AvatarListBox(this, mBeings);
mScroll = new ScrollArea(mList, showBackground,
@@ -617,7 +617,7 @@ public:
SocialNavigationTab(const Widget2 *const widget,
const bool showBackground) :
SocialTab(widget),
- mBeings(new BeingsListModal())
+ mBeings(new BeingsListModal)
{
mList = new AvatarListBox(this, mBeings);
mScroll = new ScrollArea(mList, showBackground,
@@ -956,7 +956,7 @@ public:
SocialAttackTab(const Widget2 *const widget,
const bool showBackground) :
SocialTab(widget),
- mBeings(new BeingsListModal())
+ mBeings(new BeingsListModal)
{
mList = new AvatarListBox(this, mBeings);
mScroll = new ScrollArea(mList, showBackground,
@@ -1015,7 +1015,7 @@ public:
SocialPickupTab(const Widget2 *const widget,
const bool showBackground) :
SocialTab(widget),
- mBeings(new BeingsListModal())
+ mBeings(new BeingsListModal)
{
mList = new AvatarListBox(this, mBeings);
mScroll = new ScrollArea(mList, showBackground,
@@ -1074,7 +1074,7 @@ public:
SocialFriendsTab(const Widget2 *const widget,
std::string name, const bool showBackground) :
SocialTab(widget),
- mBeings(new BeingsListModal())
+ mBeings(new BeingsListModal)
{
mList = new AvatarListBox(this, mBeings);
mScroll = new ScrollArea(mList, showBackground,
diff --git a/src/gui/widgets/button.cpp b/src/gui/widgets/button.cpp
index 5de5f01b5..a6ecfa7db 100644
--- a/src/gui/widgets/button.cpp
+++ b/src/gui/widgets/button.cpp
@@ -65,7 +65,7 @@ Button::Button(const Widget2 *const widget) :
gcn::WidgetListener(),
mDescription(""), mClickCount(0),
mTag(0),
- mVertexes2(new ImageCollection()),
+ mVertexes2(new ImageCollection),
mRedraw(true),
mMode(0),
mXOffset(0),
@@ -90,7 +90,7 @@ Button::Button(const Widget2 *const widget,
mDescription(""),
mClickCount(0),
mTag(0),
- mVertexes2(new ImageCollection()),
+ mVertexes2(new ImageCollection),
mRedraw(true),
mMode(0),
mXOffset(0),
@@ -121,7 +121,7 @@ Button::Button(const Widget2 *const widget,
mDescription(""),
mClickCount(0),
mTag(0),
- mVertexes2(new ImageCollection()),
+ mVertexes2(new ImageCollection),
mRedraw(true),
mMode(0),
mXOffset(0),
@@ -152,7 +152,7 @@ Button::Button(const Widget2 *const widget, const std::string &imageName,
mDescription(""),
mClickCount(0),
mTag(0),
- mVertexes2(new ImageCollection()),
+ mVertexes2(new ImageCollection),
mRedraw(true),
mMode(0),
mXOffset(0),