mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 13:36:48 +08:00
Fixed mutex lock mistakes.
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user