From 8e278873d4bd35a7cd7f3b6d9d7852fa422370b8 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 29 Dec 2008 12:09:27 -0500 Subject: Merged CHECK macro branch --- sigmod/Author.cpp | 36 +++++++++--------------------------- 1 file changed, 9 insertions(+), 27 deletions(-) (limited to 'sigmod/Author.cpp') diff --git a/sigmod/Author.cpp b/sigmod/Author.cpp index a8ee02fd..34fb3b9f 100644 --- a/sigmod/Author.cpp +++ b/sigmod/Author.cpp @@ -87,35 +87,17 @@ QDomElement Sigmod::Author::save() const return xml; } -void Sigmod::Author::setName(const QString& name) -{ - CHECK(name); -} - -void Sigmod::Author::setEmail(const QString& email) -{ - CHECK(email); -} +SETTER(Author, QString&, Name, name) +SETTER(Author, QString&, Email, email) +SETTER(Author, QString&, Role, role) -void Sigmod::Author::setRole(const QString& role) -{ - CHECK(role); -} +GETTER(Author, QString, name) +GETTER(Author, QString, email) +GETTER(Author, QString, role) -QString Sigmod::Author::name() const -{ - return m_name; -} - -QString Sigmod::Author::email() const -{ - return m_email; -} - -QString Sigmod::Author::role() const -{ - return m_role; -} +CHECK(Author, QString&, name) +CHECK(Author, QString&, email) +CHECK(Author, QString&, role) Sigmod::Author& Sigmod::Author::operator=(const Author& rhs) { -- cgit