diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-21 22:44:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-21 23:18:20 +0300 |
commit | 62ffd2023d9073e452fe2e2f50cf6b2f11224d6f (patch) | |
tree | 8c45c7c16b0c20ac6a7b722d69c148149e6b651f /src/gui/npcpostdialog.cpp | |
parent | cfa5391c1be51ef49380e398a72c813255d6316e (diff) | |
download | mv-62ffd2023d9073e452fe2e2f50cf6b2f11224d6f.tar.gz mv-62ffd2023d9073e452fe2e2f50cf6b2f11224d6f.tar.bz2 mv-62ffd2023d9073e452fe2e2f50cf6b2f11224d6f.tar.xz mv-62ffd2023d9073e452fe2e2f50cf6b2f11224d6f.zip |
next code style changes.
Diffstat (limited to 'src/gui/npcpostdialog.cpp')
-rw-r--r-- | src/gui/npcpostdialog.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/npcpostdialog.cpp b/src/gui/npcpostdialog.cpp index f1c2cacea..7871ba09c 100644 --- a/src/gui/npcpostdialog.cpp +++ b/src/gui/npcpostdialog.cpp @@ -38,7 +38,7 @@ NpcPostDialog::DialogList NpcPostDialog::instances; -NpcPostDialog::NpcPostDialog(int npcId): +NpcPostDialog::NpcPostDialog(const int npcId): Window(_("NPC"), false, nullptr, "npcpost.xml"), ActionListener(), mNpcId(npcId), @@ -48,16 +48,16 @@ NpcPostDialog::NpcPostDialog(int npcId): setContentSize(400, 180); // create text field for receiver - gcn::Label *senderText = new Label(_("To:")); + gcn::Label *const senderText = new Label(_("To:")); senderText->setPosition(5, 5); mSender->setPosition(senderText->getWidth() + 5, 5); mSender->setWidth(65); // create button for sending - Button *sendButton = new Button(_("Send"), "send", this); + Button *const sendButton = new Button(_("Send"), "send", this); sendButton->setPosition(400 - sendButton->getWidth(), 170 - sendButton->getHeight()); - Button *cancelButton = new Button(_("Cancel"), "cancel", this); + Button *const cancelButton = new Button(_("Cancel"), "cancel", this); cancelButton->setPosition(sendButton->getX() - (cancelButton->getWidth() + 2), sendButton->getY()); @@ -66,7 +66,7 @@ NpcPostDialog::NpcPostDialog(int npcId): mText->setEditable(true); // create scroll box for letter text - ScrollArea *scrollArea = new ScrollArea(mText); + ScrollArea *const scrollArea = new ScrollArea(mText); scrollArea->setHorizontalScrollPolicy(gcn::ScrollArea::SHOW_NEVER); scrollArea->setDimension(gcn::Rectangle( 5, mSender->getHeight() + 5, |