summaryrefslogtreecommitdiffstats
path: root/sigmod/Sound.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-12-29 10:55:03 -0500
committerBen Boeckel <MathStuf@gmail.com>2008-12-29 10:55:03 -0500
commit61d2f8e4768c0767a64c85aa2b69cfb19d068d61 (patch)
treef1b066f832bd344899b557392d836bc095f9009a /sigmod/Sound.cpp
parent3fa8f8764bae2e2fa4d558f6282f1237444147d9 (diff)
Sound and Skin now use CHECK macros
Diffstat (limited to 'sigmod/Sound.cpp')
-rw-r--r--sigmod/Sound.cpp36
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)
{