Remove dynamic exceptions
[anna.git] / source / http / internal / Token.cpp
index 1bdd366..98ff925 100644 (file)
@@ -18,7 +18,7 @@ using namespace std;
 using namespace anna;
 
 const string& http::Token::getStringValue() const
-throw() {
+{
   if(contains(0) == false)
     const_cast <Token*>(this)->a_aux.assign(DataBlock::getData(), DataBlock::getSize());
   else
@@ -28,7 +28,7 @@ throw() {
 }
 
 int http::Token::getIntegerValue() const
-throw() {
+{
   if(contains(0) == false) {
     const_cast <Token*>(this)->a_aux.assign(DataBlock::getData(), DataBlock::getSize());
     return atoi(a_aux.c_str());
@@ -38,7 +38,7 @@ throw() {
 }
 
 bool http::Token::contains(const char byte) const
-throw() {
+{
   const char* p;
   const char* maxp;
 
@@ -51,7 +51,7 @@ throw() {
 }
 
 int http::Token::calculeOffset(const DataBlock& base) const
-throw(RuntimeException) {
+noexcept(false) {
   const int result = getData() - base.getData();
 
   if(result < 0) {
@@ -64,7 +64,7 @@ throw(RuntimeException) {
 }
 
 bool http::Token::match(const char* str) const
-throw() {
+{
   const char* pp = DataBlock::getData();
   int size = DataBlock::getSize();