1
0
forked from 0ad/0ad

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:
Nicolas Auvray 2018-03-11 17:07:13 +00:00
parent dad45b60cd
commit 7d077ad71b

View File

@ -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);
}
};