summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/changeemaildialog.cpp6
-rw-r--r--src/gui/changepassworddialog.cpp8
-rw-r--r--src/gui/chat.cpp2
-rw-r--r--src/gui/guildwindow.cpp4
-rw-r--r--src/gui/itemcontainer.cpp2
-rw-r--r--src/gui/npcpostdialog.cpp4
-rw-r--r--src/gui/serverdialog.cpp4
-rw-r--r--src/gui/setup_colors.cpp2
-rw-r--r--src/gui/skilldialog.cpp2
-rw-r--r--src/gui/unregisterdialog.cpp2
-rw-r--r--src/gui/window.cpp2
11 files changed, 19 insertions, 19 deletions
diff --git a/src/gui/changeemaildialog.cpp b/src/gui/changeemaildialog.cpp
index 0ed95bd7..14cfb1e7 100644
--- a/src/gui/changeemaildialog.cpp
+++ b/src/gui/changeemaildialog.cpp
@@ -40,14 +40,14 @@
ChangeEmailDialog::ChangeEmailDialog(Window *parent, LoginData *loginData):
Window(_("Change Email Address"), true, parent),
- mWrongDataNoticeListener(new WrongDataNoticeListener()),
+ mWrongDataNoticeListener(new WrongDataNoticeListener),
mLoginData(loginData)
{
gcn::Label *accountLabel = new gcn::Label(strprintf(_("Account: %s"),
mLoginData->username.c_str()));
gcn::Label *newEmailLabel = new gcn::Label(_("Type New Email Address twice:"));
- mFirstEmailField = new TextField();
- mSecondEmailField = new TextField();
+ mFirstEmailField = new TextField;
+ mSecondEmailField = new TextField;
mChangeEmailButton = new Button(_("Change Email Address"), "change_email", this);
mCancelButton = new Button(_("Cancel"), "cancel", this);
diff --git a/src/gui/changepassworddialog.cpp b/src/gui/changepassworddialog.cpp
index 7c1e5bcd..4bc97326 100644
--- a/src/gui/changepassworddialog.cpp
+++ b/src/gui/changepassworddialog.cpp
@@ -41,16 +41,16 @@
ChangePasswordDialog::ChangePasswordDialog(Window *parent, LoginData *loginData):
Window(_("Change Password"), true, parent),
- mWrongDataNoticeListener(new WrongDataNoticeListener()),
+ mWrongDataNoticeListener(new WrongDataNoticeListener),
mLoginData(loginData)
{
gcn::Label *accountLabel = new gcn::Label(strprintf(_("Account: %s"),
mLoginData->username.c_str()));
gcn::Label *oldPassLabel = new gcn::Label(_("Password:"));
- mOldPassField = new PasswordField();
+ mOldPassField = new PasswordField;
gcn::Label *newPassLabel = new gcn::Label(_("Type New Password twice:"));
- mFirstPassField = new PasswordField();
- mSecondPassField = new PasswordField();
+ mFirstPassField = new PasswordField;
+ mSecondPassField = new PasswordField;
mChangePassButton = new Button(_("Change Password"), "change_password", this);
mCancelButton = new Button(_("Cancel"), "cancel", this);
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index 48858bf6..5b07980b 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -62,7 +62,7 @@ ChatWindow::ChatWindow(Network * network):
mChatInput->setActionEventId("chatinput");
mChatInput->addActionListener(this);
- mChatTabs = new TabbedArea();
+ mChatTabs = new TabbedArea;
add(mChatTabs);
add(mChatInput);
diff --git a/src/gui/guildwindow.cpp b/src/gui/guildwindow.cpp
index fb14235b..0d48b4f3 100644
--- a/src/gui/guildwindow.cpp
+++ b/src/gui/guildwindow.cpp
@@ -64,7 +64,7 @@ GuildWindow::GuildWindow():
mGuildButton[1]->setEnabled(false);
mGuildButton[2]->setEnabled(false);
- mGuildTabs = new TabbedArea();
+ mGuildTabs = new TabbedArea;
place(0, 0, mGuildButton[0]);
place(1, 0, mGuildButton[1]);
@@ -169,7 +169,7 @@ void GuildWindow::action(const gcn::ActionEvent &event)
void GuildWindow::newGuildTab(const std::string &guildName)
{
// Create new tab
- GuildListBox *list = new GuildListBox();
+ GuildListBox *list = new GuildListBox;
list->setListModel(player_node->getGuild(guildName));
ScrollArea *sa = new ScrollArea(list);
sa->setDimension(gcn::Rectangle(5, 5, 135, 250));
diff --git a/src/gui/itemcontainer.cpp b/src/gui/itemcontainer.cpp
index abce257d..bd180f28 100644
--- a/src/gui/itemcontainer.cpp
+++ b/src/gui/itemcontainer.cpp
@@ -61,7 +61,7 @@ ItemContainer::ItemContainer(Inventory *inventory,
mSwapItems(false),
mDescItems(false)
{
- mItemPopup = new ItemPopup();
+ mItemPopup = new ItemPopup;
setFocusable(true);
ResourceManager *resman = ResourceManager::getInstance();
diff --git a/src/gui/npcpostdialog.cpp b/src/gui/npcpostdialog.cpp
index e0133473..5c083612 100644
--- a/src/gui/npcpostdialog.cpp
+++ b/src/gui/npcpostdialog.cpp
@@ -41,7 +41,7 @@ NpcPostDialog::NpcPostDialog():
// create text field for receiver
gcn::Label *senderText = new gcn::Label("To:");
senderText->setPosition(5, 5);
- mSender = new TextField();
+ mSender = new TextField;
mSender->setPosition(senderText->getWidth() + 5, 5);
mSender->setWidth(65);
@@ -54,7 +54,7 @@ NpcPostDialog::NpcPostDialog():
sendButton->getY());
// create textfield for letter
- mText = new TextBox();
+ mText = new TextBox;
mText->setHeight(400 - (mSender->getHeight() + sendButton->getHeight()));
mText->setEditable(true);
diff --git a/src/gui/serverdialog.cpp b/src/gui/serverdialog.cpp
index a57be06c..9d679acb 100644
--- a/src/gui/serverdialog.cpp
+++ b/src/gui/serverdialog.cpp
@@ -80,7 +80,7 @@ ServerDialog::ServerDialog(LoginData *loginData):
mPortField = new TextField(toString(mLoginData->port));
// Add the most used servers from config
- mMostUsedServersListModel = new ServersListModel();
+ mMostUsedServersListModel = new ServersListModel;
Server currentServer;
std::string currentConfig = "";
for (int i=0; i<=MAX_SERVERLIST; i++)
@@ -101,7 +101,7 @@ ServerDialog::ServerDialog(LoginData *loginData):
mMostUsedServersListBox = new ListBox(NULL);
mMostUsedServersListBox->setListModel(mMostUsedServersListModel);
- mMostUsedServersScrollArea = new ScrollArea();
+ mMostUsedServersScrollArea = new ScrollArea;
mMostUsedServersDropDown = new DropDown(mMostUsedServersListModel,
mMostUsedServersScrollArea, mMostUsedServersListBox);
diff --git a/src/gui/setup_colors.cpp b/src/gui/setup_colors.cpp
index 073bbc1a..dcd0b73d 100644
--- a/src/gui/setup_colors.cpp
+++ b/src/gui/setup_colors.cpp
@@ -79,7 +79,7 @@ Setup_Colors::Setup_Colors() :
mGradTypeSlider->addActionListener(this);
mGradTypeSlider->setEnabled(false);
- mGradTypeText = new Label();
+ mGradTypeText = new Label;
mRedLabel = new Label(_("Red: "));
diff --git a/src/gui/skilldialog.cpp b/src/gui/skilldialog.cpp
index e30299d4..16c983ad 100644
--- a/src/gui/skilldialog.cpp
+++ b/src/gui/skilldialog.cpp
@@ -102,7 +102,7 @@ SkillDialog::SkillDialog():
setCloseButton(true);
setDefaultSize(windowContainer->getWidth() - 280, 30, 275, 425);
- TabbedArea *panel = new TabbedArea();
+ TabbedArea *panel = new TabbedArea;
panel->setDimension(gcn::Rectangle(5, 5, 270, 420));
Skill_Tab *tab;
diff --git a/src/gui/unregisterdialog.cpp b/src/gui/unregisterdialog.cpp
index 7906afc1..c133c9f7 100644
--- a/src/gui/unregisterdialog.cpp
+++ b/src/gui/unregisterdialog.cpp
@@ -42,7 +42,7 @@
UnRegisterDialog::UnRegisterDialog(Window *parent, LoginData *loginData):
Window("Unregister", true, parent),
- mWrongDataNoticeListener(new WrongDataNoticeListener()),
+ mWrongDataNoticeListener(new WrongDataNoticeListener),
mLoginData(loginData)
{
gcn::Label *userLabel = new gcn::Label(strprintf(_("Name: %s"), mLoginData->username.c_str()));
diff --git a/src/gui/window.cpp b/src/gui/window.cpp
index 3bc03fb8..5dd32e00 100644
--- a/src/gui/window.cpp
+++ b/src/gui/window.cpp
@@ -60,7 +60,7 @@ Window::Window(const std::string &caption, bool modal, Window *parent, const std
throw GCN_EXCEPTION("Window::Window(): no windowContainer set");
if (instances == 0)
- skinLoader = new SkinLoader();
+ skinLoader = new SkinLoader;
instances++;