mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-19 12:15:29 +08:00
refs #804 Fixed Clang static analysis warnings.
This commit is contained in:
committed by
Klaus Basan
parent
132ffa9ec2
commit
096e1e9a81
@@ -148,9 +148,15 @@ namespace BlackSound
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (this->m_pushTimer) this->m_pushTimer->stop();
|
if (this->m_pushTimer)
|
||||||
this->m_pushTimer->disconnect(this);
|
{
|
||||||
if (this->m_playMode == CNotificationSounds::SingleWithAutomaticDeletion) this->stop();
|
this->m_pushTimer->stop();
|
||||||
|
this->m_pushTimer->disconnect(this);
|
||||||
|
}
|
||||||
|
if (this->m_playMode == CNotificationSounds::SingleWithAutomaticDeletion)
|
||||||
|
{
|
||||||
|
this->stop();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -299,8 +299,8 @@ void SwiftGuiStd::setContextAvailability()
|
|||||||
sGui &&
|
sGui &&
|
||||||
this->isMyIdentifier(sGui->getIContextApplication()->registerApplication(getCurrentTimestampIdentifier()));
|
this->isMyIdentifier(sGui->getIContextApplication()->registerApplication(getCurrentTimestampIdentifier()));
|
||||||
}
|
}
|
||||||
this->m_contextNetworkAvailable = this->m_coreAvailable || sGui->getIContextNetwork()->isUsingImplementingObject();
|
this->m_contextNetworkAvailable = this->m_coreAvailable || (sGui && sGui->getIContextNetwork()->isUsingImplementingObject());
|
||||||
this->m_contextAudioAvailable = this->m_coreAvailable || sGui->getIContextAudio()->isUsingImplementingObject();
|
this->m_contextAudioAvailable = this->m_coreAvailable || (sGui && sGui->getIContextAudio()->isUsingImplementingObject());
|
||||||
|
|
||||||
// react to a change in core's availability
|
// react to a change in core's availability
|
||||||
if (this->m_coreAvailable != corePreviouslyAvailable)
|
if (this->m_coreAvailable != corePreviouslyAvailable)
|
||||||
|
|||||||
Reference in New Issue
Block a user