summaryrefslogtreecommitdiff
path: root/src/channel.cc
diff options
context:
space:
mode:
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*/