diff --git a/src/crypto/Crypto.cpp b/src/crypto/Crypto.cpp index 856a597c1..f518ace17 100644 --- a/src/crypto/Crypto.cpp +++ b/src/crypto/Crypto.cpp @@ -23,25 +23,25 @@ bool Crypto::m_initalized(false); -int gcry_qt_mutex_init(void** p_sys) +static int gcry_qt_mutex_init(void** p_sys) { *p_sys = new QMutex(); return 0; } -int gcry_qt_mutex_destroy(void** p_sys) +static int gcry_qt_mutex_destroy(void** p_sys) { delete reinterpret_cast(*p_sys); return 0; } -int gcry_qt_mutex_lock(void** p_sys) +static int gcry_qt_mutex_lock(void** p_sys) { reinterpret_cast(*p_sys)->lock(); return 0; } -int gcry_qt_mutex_unlock(void** p_sys) +static int gcry_qt_mutex_unlock(void** p_sys) { reinterpret_cast(*p_sys)->unlock(); return 0; diff --git a/src/streams/SymmetricCipherStream.cpp b/src/streams/SymmetricCipherStream.cpp index edfbc0b74..2d2a7888e 100644 --- a/src/streams/SymmetricCipherStream.cpp +++ b/src/streams/SymmetricCipherStream.cpp @@ -20,10 +20,10 @@ SymmetricCipherStream::SymmetricCipherStream(QIODevice* baseDevice, SymmetricCipher::Algorithm algo, SymmetricCipher::Mode mode, SymmetricCipher::Direction direction, const QByteArray& key, const QByteArray& iv) - : LayeredStream(baseDevice) - , m_bufferPos(0) - , m_bufferFilling(false) - , m_error(false) + : LayeredStream(baseDevice) + , m_bufferPos(0) + , m_bufferFilling(false) + , m_error(false) { m_cipher = new SymmetricCipher(algo, mode, direction, key, iv); }