summaryrefslogtreecommitdiff
path: root/src/gui/widgets/whispertab.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-03-27 12:35:09 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-03-27 12:35:09 +0100
commit05e753294c1a603252d2eed4b1731c3f50543a7e (patch)
tree82d8c04a55df7a689fd15b69e8e6917c91e165d0 /src/gui/widgets/whispertab.h
parent38674a7732d2224e07e80c0c4224e3468e4ddfb0 (diff)
downloadmana-05e753294c1a603252d2eed4b1731c3f50543a7e.tar.gz
mana-05e753294c1a603252d2eed4b1731c3f50543a7e.tar.bz2
mana-05e753294c1a603252d2eed4b1731c3f50543a7e.tar.xz
mana-05e753294c1a603252d2eed4b1731c3f50543a7e.zip
Fixed some compiler warnings
Fixed a faulty == statement that should have been an assignment and a mismatched 'else' block.
Diffstat (limited to 'src/gui/widgets/whispertab.h')
-rw-r--r--src/gui/widgets/whispertab.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/gui/widgets/whispertab.h b/src/gui/widgets/whispertab.h
index 059346fa..e3ebf0f3 100644
--- a/src/gui/widgets/whispertab.h
+++ b/src/gui/widgets/whispertab.h
@@ -27,24 +27,23 @@
class Channel;
/**
- * A tab for whispers from a single nick.
+ * A tab for whispers from a single player.
*/
class WhisperTab : public ChatTab
{
public:
- std::string getNick() { return mNick; }
+ const std::string &getNick() const { return mNick; }
protected:
friend class ChatWindow;
/**
* Constructor.
+ *
+ * @param nick the name of the player this tab is whispering to
*/
- WhisperTab(std::string nick);
+ WhisperTab(const std::string &nick);
- /**
- * Destructor.
- */
~WhisperTab();
void sendChat(std::string &msg);