summaryrefslogtreecommitdiff
path: root/src/channel.h
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.h
parentc551d2720a7c9c8071e8c980bde1daeec9048bdc (diff)
refactored class Channel
Diffstat (limited to 'src/channel.h')
-rw-r--r--src/channel.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/channel.h b/src/channel.h
index c031973..6cfee81 100644
--- a/src/channel.h
+++ b/src/channel.h
@@ -24,8 +24,7 @@
* along with DrumGizmo; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
-#ifndef __DRUMGIZMO_CHANNEL_H__
-#define __DRUMGIZMO_CHANNEL_H__
+#pragma once
#include <vector>
#include <string>
@@ -35,16 +34,15 @@
#define ALL_CHANNELS ((channel_t)0xffffffff)
#define NO_CHANNEL ((channel_t)0xfffffffe)
-class Channel {
+class Channel
+{
public:
- Channel(std::string name = "");
+ Channel(const std::string& name = "");
- std::string name;
- channel_t num;
+ std::string name;
+ channel_t num;
};
typedef Channel InstrumentChannel;
-typedef std::vector< Channel > Channels;
-
-#endif/*__DRUMGIZMO_CHANNEL_H__*/
+typedef std::vector<Channel> Channels;