diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-12-29 10:57:12 -0500 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-12-29 10:57:12 -0500 |
| commit | fac9e51b6ec4e41d777c176e9bb1fadc0f9bc906 (patch) | |
| tree | 4a140cfd55b2883ee9a69f5dc4a0a6876845aaa2 /sigmod/Weather.cpp | |
| parent | 0f2a0fe8bcbeefa62d0fd4fae89f0de6610fe993 (diff) | |
| download | sigen-fac9e51b6ec4e41d777c176e9bb1fadc0f9bc906.tar.gz sigen-fac9e51b6ec4e41d777c176e9bb1fadc0f9bc906.tar.xz sigen-fac9e51b6ec4e41d777c176e9bb1fadc0f9bc906.zip | |
Finished up converting classes to use CHECK macros
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) { |
