QAmqpChannelHash: Substitute static_cast for qobject_cast
This commit is contained in:
parent
e43224877f
commit
60f680a4ef
|
|
@ -90,7 +90,9 @@ void QAmqpChannelHash::channelDestroyed(QObject* object)
|
|||
*/
|
||||
void QAmqpChannelHash::queueDeclared()
|
||||
{
|
||||
put(static_cast<QAmqpQueue*>(sender()));
|
||||
QAmqpQueue *queue = qobject_cast<QAmqpQueue*>(sender());
|
||||
if (queue)
|
||||
put(queue);
|
||||
}
|
||||
|
||||
/*!
|
||||
|
|
|
|||
Loading…
Reference in New Issue