diff options
Diffstat (limited to 'src/instrument.cc')
-rw-r--r-- | src/instrument.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/instrument.cc b/src/instrument.cc index eeaa956..d246c09 100644 --- a/src/instrument.cc +++ b/src/instrument.cc @@ -26,8 +26,8 @@ */ #include "instrument.h" -#include <stdlib.h> -#include <stdio.h> +#include <cstdlib> +//#include <stdio.h> #include <hugin.hpp> @@ -57,12 +57,12 @@ Instrument::~Instrument() } } -bool Instrument::isValid() +bool Instrument::isValid() const { return this == magic; } -Sample *Instrument::sample(level_t level, size_t pos) +Sample* Instrument::sample(level_t level, size_t pos) { Sample *sample = NULL; @@ -134,7 +134,7 @@ Sample *Instrument::sample(level_t level, size_t pos) return sample; } -void Instrument::addSample(level_t a, level_t b, Sample *s) +void Instrument::addSample(level_t a, level_t b, Sample* s) { samples.insert(a, b, s); } @@ -154,22 +154,22 @@ void Instrument::finalise() } } -std::string Instrument::name() +std::string Instrument::getName() const { return _name; } -std::string Instrument::description() +std::string Instrument::getDescription() const { return _description; } -std::string Instrument::group() +std::string Instrument::getGroup() const { return _group; } -void Instrument::setGroup(std::string g) +void Instrument::setGroup(const std::string& g) { _group = g; } |