diff Core/HttpServer/MongooseServer.cpp @ 2836:7133ad478eea

fix Debian warnings
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 20 Sep 2018 16:17:46 +0200
parents c7313e1f7644
children da43ef7ff32a
line wrap: on
line diff
--- a/Core/HttpServer/MongooseServer.cpp	Thu Sep 20 11:27:48 2018 +0200
+++ b/Core/HttpServer/MongooseServer.cpp	Thu Sep 20 16:17:46 2018 +0200
@@ -292,7 +292,7 @@
     {
       length = boost::lexical_cast<int>(cs->second);
     }
-    catch (boost::bad_lexical_cast)
+    catch (boost::bad_lexical_cast&)
     {
       return PostDataStatus_NoLength;
     }
@@ -364,7 +364,7 @@
       {
         fileSize = boost::lexical_cast<size_t>(fileSizeStr->second);
       }
-      catch (boost::bad_lexical_cast)
+      catch (boost::bad_lexical_cast&)
       {
         return PostDataStatus_Failure;
       }
@@ -417,7 +417,7 @@
         last = it;
       }
     }
-    catch (std::length_error)
+    catch (std::length_error&)
     {
       return PostDataStatus_Failure;
     }