From 7d077ad71bbe63d6e7ed53051766d0f3740c6612 Mon Sep 17 00:00:00 2001 From: Itms Date: Sun, 11 Mar 2018 17:07:13 +0000 Subject: [PATCH] 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. --- source/lobby/glooxwrapper/glooxwrapper.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/source/lobby/glooxwrapper/glooxwrapper.cpp b/source/lobby/glooxwrapper/glooxwrapper.cpp index a4fb267441..29700f29e2 100644 --- a/source/lobby/glooxwrapper/glooxwrapper.cpp +++ b/source/lobby/glooxwrapper/glooxwrapper.cpp @@ -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); } };