summaryrefslogtreecommitdiff
path: root/src/channel.cc
diff options
context:
space:
mode:
authorChristian Glöckner <cgloeckner@freenet.de>2016-03-29 10:23:56 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2016-03-31 17:35:47 +0200
commitfa677c584b698d4d8aa8acc967f31960a01a9cf6 (patch)
tree8d4caf6b947ca8dc821b86df199940bdc8970ac5 /src/channel.cc
parentc551d2720a7c9c8071e8c980bde1daeec9048bdc (diff)
refactored class Channel
Diffstat (limited to 'src/channel.cc')
-rw-r--r--src/channel.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/channel.cc b/src/channel.cc
index 6aece18..402a09a 100644
--- a/src/channel.cc
+++ b/src/channel.cc
@@ -26,16 +26,16 @@
*/
#include "channel.h"
-Channel::Channel(std::string name)
+Channel::Channel(const std::string& name)
+ : name{name}
+ , num{NO_CHANNEL}
{
- this->name = name;
- num = NO_CHANNEL;
}
#ifdef TEST_CHANNEL
-//deps:
-//cflags:
-//libs:
+// deps:
+// cflags:
+// libs:
#include "test.h"
TEST_BEGIN;
@@ -54,4 +54,4 @@ channels.push_back(c2);
TEST_END;
-#endif/*TEST_CHANNEL*/
+#endif /*TEST_CHANNEL*/