Fixed mutex lock mistakes.

This commit is contained in:
Mathew Sutcliffe
2015-10-03 13:41:46 +01:00
parent 108c6f7db5
commit 32b5081127
2 changed files with 4 additions and 4 deletions

View File

@@ -32,7 +32,7 @@ namespace BlackMisc
const QPixmap &CPixmap::pixmap() const
{
QWriteLocker(&this->m_lock);
QWriteLocker lock(&this->m_lock);
if (this->m_hasCachedPixmap) { return this->m_pixmap; }
// this part here becomes relevant when marshalling via DBus is used
@@ -47,7 +47,7 @@ namespace BlackMisc
bool CPixmap::isNull() const
{
QReadLocker(&this->m_lock);
QReadLocker lock(&this->m_lock);
if (this->m_hasCachedPixmap) { return false; }
return (this->m_array.isEmpty() || this->m_array.isNull());
}