Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFelix Geyer <debfx@fobos.de>2010-11-22 01:11:16 +0300
committerFelix Geyer <debfx@fobos.de>2010-11-22 01:11:16 +0300
commit2c8da57ce597a12715ed116b4b4a40965861f279 (patch)
tree1524e9ac63c62596db5bcc9887e1c889e3f0dc2b /src
parent230d24a123a04c08bfe8a209dd12f2e5b8a52379 (diff)
Make some methods static.
Diffstat (limited to 'src')
-rw-r--r--src/crypto/Crypto.cpp8
-rw-r--r--src/streams/SymmetricCipherStream.cpp8
2 files changed, 8 insertions, 8 deletions
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<QMutex*>(*p_sys);
return 0;
}
-int gcry_qt_mutex_lock(void** p_sys)
+static int gcry_qt_mutex_lock(void** p_sys)
{
reinterpret_cast<QMutex*>(*p_sys)->lock();
return 0;
}
-int gcry_qt_mutex_unlock(void** p_sys)
+static int gcry_qt_mutex_unlock(void** p_sys)
{
reinterpret_cast<QMutex*>(*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);
}