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/Weather.cpp | |
| parent | e801b73a2f9cb845913cf546002c8f50eefc473c (diff) | |
Merged CHECK macro branch
Diffstat (limited to 'sigmod/Weather.cpp')
| -rw-r--r-- | sigmod/Weather.cpp | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/sigmod/Weather.cpp b/sigmod/Weather.cpp index 532643a4..2458d836 100644 --- a/sigmod/Weather.cpp +++ b/sigmod/Weather.cpp @@ -78,25 +78,14 @@ QDomElement Sigmod::Weather::save() const return xml; } -void Sigmod::Weather::setName(const QString& name) -{ - CHECK(name); -} +SETTER(Weather, QString&, Name, name) +SETTER(Weather, Sigcore::Script&, Script, script) -void Sigmod::Weather::setScript(const Sigcore::Script& script) -{ - CHECK(script); -} +GETTER(Weather, QString, name) +GETTER(Weather, Sigcore::Script, script) -QString Sigmod::Weather::name() const -{ - return m_name; -} - -Sigcore::Script Sigmod::Weather::script() const -{ - return m_script; -} +CHECK(Weather, QString&, name) +CHECK(Weather, Sigcore::Script&, script) Sigmod::Weather& Sigmod::Weather::operator=(const Weather& rhs) { |
