Commit be8da2ad authored by Laurent Montel's avatar Laurent Montel 😁

initialize some variables

parent 32856967
......@@ -204,11 +204,11 @@ private:
*/
void trimBuffer();
QIODevice *m_socket;
bool m_isServerModeEnabled;
QIODevice *m_socket = nullptr;
bool m_isServerModeEnabled = false;
QByteArray m_data;
int m_position;
qint64 m_literalSize;
int m_position = -1;
qint64 m_literalSize = -1;
};
}
......
......@@ -53,7 +53,7 @@ public:
}
QList<QByteArray> tags;
Session *m_session;
Session *m_session = nullptr;
QString m_name;
KTcpSocket::Error m_socketError;
};
......
......@@ -91,15 +91,15 @@ private:
Session *const q;
bool isSocketConnected;
bool isSocketConnected = false;
Session::State state;
SessionLogger *logger;
SessionThread *thread;
SessionLogger *logger = nullptr;
SessionThread *thread = nullptr;
SessionUiProxy::Ptr uiProxy;
bool jobRunning;
Job *currentJob;
bool jobRunning = false;
Job *currentJob = nullptr;
QQueue<Job *> queue;
QByteArray authTag;
......@@ -114,7 +114,7 @@ private:
KTcpSocket::SslVersion sslVersion;
int socketTimerInterval;
int socketTimerInterval = 0;
QTimer socketTimer;
};
......
......@@ -83,15 +83,15 @@ private:
QString m_hostName;
quint16 m_port;
SessionSocket *m_socket;
ImapStreamParser *m_stream;
SessionSocket *m_socket = nullptr;
ImapStreamParser *m_stream = nullptr;
QQueue<QByteArray> m_dataQueue;
// Protects m_dataQueue
QMutex m_mutex;
bool m_encryptedMode;
bool m_encryptedMode = false;
};
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment