private: \
CommandType m_command; \
Client *m_client; \
-name##Reply(const CommandType command, const QByteArray &id, Client *client, QObject *parent) : m_command(command), m_client(client), AbstractReply(id, client, parent) {constructor} \
+name##Reply(const CommandType command, const QByteArray &id, Client *client, QObject *parent) : AbstractReply(id, client, parent), m_command(command), m_client(client) {constructor} \
inline const CommandType &command() const { return m_command; }
#define REPLY_DEFINITION_HELPER(name) \
namespace AniDBUdpClient {
ClientQueuedCommandsModel::ClientQueuedCommandsModel(Client *client, QObject *parent) :
- m_client(0), QAbstractTableModel(parent)
+ QAbstractTableModel(parent), m_client(0)
{
setClient(client);
}
namespace AniDBUdpClient {
ClientSentCommandsModel::ClientSentCommandsModel(Client *client, QObject *parent) :
- m_client(0), QAbstractTableModel(parent)
+ QAbstractTableModel(parent), m_client(0)
{
setClient(client);
}
break;
case MarkingWatched:
m_markingState = actionState;
+ default:
+ return;
}
emit statusUpdate(action, actionState);
}
{
fct->activationObject().setProperty(funcName,
engine.newFunction(
- &RenameEngine2QtScriptHelper, RenameEngine::function(funcName)));
+ &RenameEngine2QtScriptHelper, (void *) RenameEngine::function(funcName)));
}
QScriptContext *ct = engine.pushContext();