summaryrefslogtreecommitdiffstats
path: root/sigmod/CoinList.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigmod/CoinList.cpp')
-rw-r--r--sigmod/CoinList.cpp23
1 files changed, 6 insertions, 17 deletions
diff --git a/sigmod/CoinList.cpp b/sigmod/CoinList.cpp
index d2b3e3a7..92a8a16f 100644
--- a/sigmod/CoinList.cpp
+++ b/sigmod/CoinList.cpp
@@ -102,25 +102,14 @@ QDomElement Sigmod::CoinList::save() const
return xml;
}
-void Sigmod::CoinList::setName(const QString& name)
-{
- CHECK(name);
-}
+SETTER(CoinList, QString&, Name, name)
+SETTER(CoinList, Sigcore::Script&, Script, script)
-void Sigmod::CoinList::setScript(const Sigcore::Script& script)
-{
- CHECK(script);
-}
+GETTER(CoinList, QString, name)
+GETTER(CoinList, Sigcore::Script, script)
-QString Sigmod::CoinList::name() const
-{
- return m_name;
-}
-
-Sigcore::Script Sigmod::CoinList::script() const
-{
- return m_script;
-}
+CHECK_DEFAULT(CoinList, QString&, name)
+CHECK_DEFAULT(CoinList, Sigcore::Script&, script)
const Sigmod::CoinListItem* Sigmod::CoinList::item(const int index) const
{