Do not rely on undefined behavior in an unsupported part of the glooxwrapper, and make the code consistent with other unsupported parts.
Tested By: Stan Differential Revision: https://code.wildfiregames.com/D422 This was SVN commit r21503.
This commit is contained in:
parent
dad45b60cd
commit
7d077ad71b
@ -216,18 +216,14 @@ public:
|
||||
m_Wrapped->handleRegistrationResult(fromWrapped, regResult);
|
||||
}
|
||||
|
||||
virtual void handleDataForm(const gloox::JID& from, const gloox::DataForm& UNUSED(form))
|
||||
virtual void handleDataForm(const gloox::JID& UNUSED(from), const gloox::DataForm& UNUSED(form))
|
||||
{
|
||||
glooxwrapper::JID fromWrapped(from);
|
||||
/* DataForm not supported */
|
||||
m_Wrapped->handleDataForm(fromWrapped, *(glooxwrapper::DataForm*)NULL);
|
||||
}
|
||||
|
||||
virtual void handleOOB(const gloox::JID& from, const gloox::OOB& UNUSED(oob))
|
||||
virtual void handleOOB(const gloox::JID& UNUSED(from), const gloox::OOB& UNUSED(oob))
|
||||
{
|
||||
glooxwrapper::JID fromWrapped(from);
|
||||
/* OOB not supported */
|
||||
m_Wrapped->handleOOB(fromWrapped, *(glooxwrapper::OOB*)NULL);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user