]> Some of my projects - anidbudpclient.git/commitdiff
Fix gcc warnings/errors rename-tool
authorAPTX <redacted>
Fri, 21 Jan 2011 22:52:06 +0000 (23:52 +0100)
committerAPTX <redacted>
Fri, 21 Jan 2011 22:52:06 +0000 (23:52 +0100)
abstractcommand.h
clientqueuedcommandsmodel.cpp
clientsentcommandsmodel.cpp
file.cpp
renameparser/ECMAScript/parser.cpp

index 1a7ce59..0484608 100644 (file)
@@ -40,7 +40,7 @@ typedef name##Command CommandType; \
 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) \
index 58bd1e0..11aad98 100644 (file)
@@ -5,7 +5,7 @@
 namespace AniDBUdpClient {
 
 ClientQueuedCommandsModel::ClientQueuedCommandsModel(Client *client, QObject *parent) :
-       m_client(0), QAbstractTableModel(parent)
+               QAbstractTableModel(parent), m_client(0)
 {
        setClient(client);
 }
index 1da5715..4df0150 100644 (file)
@@ -5,7 +5,7 @@
 namespace AniDBUdpClient {
 
 ClientSentCommandsModel::ClientSentCommandsModel(Client *client, QObject *parent) :
-       m_client(0), QAbstractTableModel(parent)
+               QAbstractTableModel(parent), m_client(0)
 {
        setClient(client);
 }
index 19dbc4e..c58ab99 100644 (file)
--- a/file.cpp
+++ b/file.cpp
@@ -437,6 +437,8 @@ void File::updateStatus(Action action, ActionState actionState)
                break;
                case MarkingWatched:
                        m_markingState = actionState;
+               default:
+                       return;
        }
        emit statusUpdate(action, actionState);
 }
index 46feaa4..117772e 100644 (file)
@@ -55,7 +55,7 @@ QString Parser::evaluate(Environment &env) const
        {
                fct->activationObject().setProperty(funcName,
                        engine.newFunction(
-                                       &RenameEngine2QtScriptHelper, RenameEngine::function(funcName)));
+                                        &RenameEngine2QtScriptHelper, (void *) RenameEngine::function(funcName)));
        }
 
        QScriptContext *ct = engine.pushContext();