mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-01 11:06:17 -04:00
Make some methods static.
This commit is contained in:
parent
230d24a123
commit
2c8da57ce5
2 changed files with 8 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue