Fixed: Warnings, throw(type) deprecated in C++11 and removed in C++17

--HG--
branch : develop
hg/compatibility-develop
kervala 6 years ago
parent c13b758be9
commit 91fa4d3f5f

@ -85,8 +85,7 @@ namespace NLNET
_PluggedModules.removeWithB(pluggedModule); _PluggedModules.removeWithB(pluggedModule);
} }
void CModuleSocket::sendModuleMessage(IModule *senderModule, TModuleId destModuleProxyId, const NLNET::CMessage &message ) void CModuleSocket::sendModuleMessage(IModule *senderModule, TModuleId destModuleProxyId, const NLNET::CMessage &message)
throw (EModuleNotPluggedHere)
{ {
TPluggedModules::TBToAMap::const_iterator it(_PluggedModules.getBToAMap().find(senderModule)); TPluggedModules::TBToAMap::const_iterator it(_PluggedModules.getBToAMap().find(senderModule));
if (it == _PluggedModules.getBToAMap().end()) if (it == _PluggedModules.getBToAMap().end())
@ -100,7 +99,6 @@ namespace NLNET
} }
void CModuleSocket::broadcastModuleMessage(IModule *senderModule, const NLNET::CMessage &message) void CModuleSocket::broadcastModuleMessage(IModule *senderModule, const NLNET::CMessage &message)
throw (EModuleNotPluggedHere)
{ {
TPluggedModules::TBToAMap::const_iterator it(_PluggedModules.getBToAMap().find(senderModule)); TPluggedModules::TBToAMap::const_iterator it(_PluggedModules.getBToAMap().find(senderModule));
if (it == _PluggedModules.getBToAMap().end()) if (it == _PluggedModules.getBToAMap().end())

Loading…
Cancel
Save