diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2008-12-29 12:09:27 -0500 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2008-12-29 12:09:27 -0500 |
commit | 8e278873d4bd35a7cd7f3b6d9d7852fa422370b8 (patch) | |
tree | 9e97b71d30779c07c79ca166e1d704a3de4d5e4f /sigmod/Sound.cpp | |
parent | e801b73a2f9cb845913cf546002c8f50eefc473c (diff) | |
download | sigen-8e278873d4bd35a7cd7f3b6d9d7852fa422370b8.tar.gz sigen-8e278873d4bd35a7cd7f3b6d9d7852fa422370b8.tar.xz sigen-8e278873d4bd35a7cd7f3b6d9d7852fa422370b8.zip |
Merged CHECK macro branch
Diffstat (limited to 'sigmod/Sound.cpp')
-rw-r--r-- | sigmod/Sound.cpp | 36 |
1 files changed, 9 insertions, 27 deletions
diff --git a/sigmod/Sound.cpp b/sigmod/Sound.cpp index ff1f0706..8e6060bf 100644 --- a/sigmod/Sound.cpp +++ b/sigmod/Sound.cpp @@ -78,35 +78,17 @@ QDomElement Sigmod::Sound::save() const return xml; } -void Sigmod::Sound::setName(const QString& name) -{ - CHECK(name); -} - -void Sigmod::Sound::setType(const Type type) -{ - CHECK(type); -} +SETTER(Sound, QString&, Name, name) +SETTER(Sound, Type, Type, type) +SETTER(Sound, QByteArray&, Data, data) -void Sigmod::Sound::setData(const QByteArray& data) -{ - CHECK(data); -} +GETTER(Sound, QString, name) +GETTER(Sound, Sigmod::Sound::Type, type) +GETTER(Sound, QByteArray, data) -QString Sigmod::Sound::name() const -{ - return m_name; -} - -Sigmod::Sound::Type Sigmod::Sound::type() const -{ - return m_type; -} - -QByteArray Sigmod::Sound::data() const -{ - return m_data; -} +CHECK(Sound, QString&, name) +CHECK(Sound, Type, type) +CHECK(Sound, QByteArray&, data) Sigmod::Sound& Sigmod::Sound::operator=(const Sound& rhs) { |