X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Fcomm%2Ftransport%2FLiteTransport.cpp;fp=source%2Fcomm%2Ftransport%2FLiteTransport.cpp;h=0f39c0b4d3508244ae17842a0d36139f18657e1d;hp=9df40925454f3af1285f569e34bd8b103889962e;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/source/comm/transport/LiteTransport.cpp b/source/comm/transport/LiteTransport.cpp index 9df4092..0f39c0b 100644 --- a/source/comm/transport/LiteTransport.cpp +++ b/source/comm/transport/LiteTransport.cpp @@ -26,13 +26,13 @@ comm::LiteTransport::~LiteTransport() { } int comm::LiteTransport::calculeSize(const DataBlock& dataBlock) -throw(RuntimeException) { +noexcept(false) { const char* buffer = dataBlock.getData(); return (dataBlock.getSize() >= headerSize) ? functions::decodeShort(buffer) + headerSize : -1; } const comm::Message* comm::LiteTransport::decode(const DataBlock& message) -throw(RuntimeException) { +noexcept(false) { const int totalSize = message.getSize(); if(totalSize < headerSize) @@ -48,7 +48,7 @@ throw(RuntimeException) { } const DataBlock& comm::LiteTransport::code(comm::Message& message) -throw(RuntimeException) { +noexcept(false) { char aux [sizeof(int)]; const DataBlock& data = message.code(); a_forCode.clear();