]> Some of my projects - anidbudpclient.git/commitdiff
AbtractReply's (and children's) command() should be public.
authorAPTX <marek321@gmail.com>
Sun, 13 May 2012 17:27:34 +0000 (19:27 +0200)
committerAPTX <marek321@gmail.com>
Sun, 13 May 2012 17:27:34 +0000 (19:27 +0200)
abstractcommand.h

index 0a71104c6f775c82bb4bdd7a0762e4d040dfbc53..69ae75bf2d9cb84f2846bd3e690afbd6cfb0bc21 100644 (file)
@@ -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;)