Remove dynamic exceptions
[anna.git] / source / core / util / Encoder.cpp
index b126a39..8daa666 100644 (file)
@@ -17,12 +17,12 @@ using namespace std;
 using namespace anna;
 
 void Encoder::initialize()
-throw() {
+{
   srand(functions::second());
 }
 
 const EncodedData& Encoder::encode(const DataBlock& data)
-throw(RuntimeException) {
+noexcept(false) {
   DES_cblock key [3];
   DES_key_schedule* skey [3];
 
@@ -58,7 +58,7 @@ throw(RuntimeException) {
 // (1) Elimina los 8 primeros bytes que tuvimos que poner de relleno en la codificacion.
 //-------------------------------------------------------------------------------------------------
 const DataBlock& Encoder::decode(const EncodedData& data)
-throw(RuntimeException) {
+noexcept(false) {
   if(data.a_realSize <= 0) {
     string msg("anna::Encoder::encode | Cannot decode an uninitialized data");
     throw RuntimeException(msg, ANNA_FILE_LOCATION);
@@ -93,7 +93,7 @@ throw(RuntimeException) {
 // 'const_cast <EncodedData&> (data).a_value.remove (sizeof (DES_cblock));'
 //-------------------------------------------------------------------------------------------------
 DataBlock& Encoder::setDataBlock(const DataBlock& other)
-throw(RuntimeException) {
+noexcept(false) {
   DataBlock& value = a_data.a_value;
   int r;
   value.clear();