summaryrefslogtreecommitdiff
path: root/src/midimapper.h
diff options
context:
space:
mode:
authorChristian Glöckner <cgloeckner@freenet.de>2016-03-29 16:53:03 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2016-03-31 17:44:25 +0200
commitb58bd2842d411c60c574e8ac72be520f48a8cd92 (patch)
tree39c1d56a8f7342cea8e5d876bfb9a5e8ed0decc3 /src/midimapper.h
parentb663b60b70a3a7a6678e4cc2cc29d5394e2e6539 (diff)
Reformatted MidiMapper
Diffstat (limited to 'src/midimapper.h')
-rw-r--r--src/midimapper.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/midimapper.h b/src/midimapper.h
index e8f7ab3..1887013 100644
--- a/src/midimapper.h
+++ b/src/midimapper.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_MIDIMAPPER_H__
-#define __DRUMGIZMO_MIDIMAPPER_H__
+#pragma once
#include <map>
#include <string>
@@ -33,14 +32,13 @@
typedef std::map<int, std::string> midimap_t;
typedef std::map<std::string, int> instrmap_t;
-class MidiMapper {
+class MidiMapper
+{
public:
- void clear();
+ void clear();
- int lookup(int note);
+ int lookup(int note);
- instrmap_t instrmap;
- midimap_t midimap;
+ instrmap_t instrmap;
+ midimap_t midimap;
};
-
-#endif/*__DRUMGIZMO_MIDIMAPPER_H__*/