summaryrefslogtreecommitdiff
path: root/src/channel.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-03-25 23:42:57 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-03-25 23:42:57 +0100
commitcd20fb3432498b8871401bdd65a143197e2a6538 (patch)
tree1edd3e20e3501de5315fa5bfc46b8673ad40d5dd /src/channel.h
parent4ba8c80791c15c144d66e6a9b23e878d3313fa26 (diff)
downloadMana-cd20fb3432498b8871401bdd65a143197e2a6538.tar.gz
Mana-cd20fb3432498b8871401bdd65a143197e2a6538.tar.bz2
Mana-cd20fb3432498b8871401bdd65a143197e2a6538.tar.xz
Mana-cd20fb3432498b8871401bdd65a143197e2a6538.zip
A host of code style fixes
Mostly putting & and * in the right place and making some getters const.
Diffstat (limited to 'src/channel.h')
-rw-r--r--src/channel.h19
1 files changed, 8 insertions, 11 deletions
diff --git a/src/channel.h b/src/channel.h
index 01bd2728..2e7941c5 100644
--- a/src/channel.h
+++ b/src/channel.h
@@ -20,12 +20,10 @@
*/
#include <string>
-#include <vector>
class Channel
{
public:
-
/**
* Constructor.
*
@@ -33,27 +31,27 @@ class Channel
* @param name the name of the channel.
* @param announcement a welcome message.
*/
- Channel(short id,
+ Channel(short id,
const std::string &name,
const std::string &announcement = std::string());
-
+
/**
* Get the id associated witht his channel
*/
int getId() const { return mId; }
-
+
/**
* Get this channel's name
*/
- const std::string& getName() const
+ const std::string &getName() const
{ return mName; }
-
+
/**
* Get the announcement message for this channel
*/
- const std::string& getAnnouncement() const
+ const std::string &getAnnouncement() const
{ return mAnnouncement; }
-
+
/**
* Sets the name of the channel.
*/
@@ -65,9 +63,8 @@ class Channel
*/
void setAnnouncement(const std::string &channelAnnouncement)
{ mAnnouncement = channelAnnouncement; }
-
+
private:
-
unsigned short mId;
std::string mName;
std::string mAnnouncement;