summaryrefslogtreecommitdiff
path: root/src/instrument.h
diff options
context:
space:
mode:
authorChristian Glöckner <cgloeckner@freenet.de>2016-05-09 11:09:06 +0200
committerChristian Glöckner <cgloeckner@freenet.de>2016-05-26 17:52:21 +0200
commit52b37cac974eb150d49eee1f0b5ba3654f6d7716 (patch)
tree353daa0524c2f918caeac17b704b016e651af6e2 /src/instrument.h
parent355f9e4e2ebace6cce52a277cbaf1d1bfc904d61 (diff)
Instrument Vector using UniquePtr
Diffstat (limited to 'src/instrument.h')
-rw-r--r--src/instrument.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/instrument.h b/src/instrument.h
index 621dddb..ee67b3f 100644
--- a/src/instrument.h
+++ b/src/instrument.h
@@ -28,6 +28,7 @@
#include <string>
#include <vector>
+#include <memory>
#include "rangemap.h"
#include "powerlist.h"
@@ -83,4 +84,4 @@ private:
};
// typedef std::map< std::string, Instrument > Instruments;
-typedef std::vector<Instrument*> Instruments;
+using Instruments = std::vector<std::unique_ptr<Instrument>>;