From: APTX Date: Sun, 13 May 2012 17:27:34 +0000 (+0200) Subject: AbtractReply's (and children's) command() should be public. X-Git-Url: https://gitweb.aptx.org/?a=commitdiff_plain;h=f5807cc1a6ef2eb030467e43b3da4b2c7d7da103;p=anidbudpclient.git AbtractReply's (and children's) command() should be public. --- diff --git a/abstractcommand.h b/abstractcommand.h index 0a71104..69ae75b 100644 --- a/abstractcommand.h +++ b/abstractcommand.h @@ -39,10 +39,10 @@ friend class ClientInterface; \ friend class Client; \ public: \ typedef name##Command CommandType; \ +inline const CommandType &command() const { return m_command; } \ private: \ CommandType m_command; \ name##Reply(const CommandType command, const QByteArray &id, QObject *parent) : AbstractReply(id, parent), m_command(command) {constructor} \ -inline const CommandType &command() const { return m_command; } #define REPLY_DEFINITION_HELPER(name) \ REPLY_DEFINITION_HELPER_INTERNAL(name, m_commandPtr = &m_command;)