Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
2831:b51233f03e7e | 2836:7133ad478eea |
---|---|
290 int length; | 290 int length; |
291 try | 291 try |
292 { | 292 { |
293 length = boost::lexical_cast<int>(cs->second); | 293 length = boost::lexical_cast<int>(cs->second); |
294 } | 294 } |
295 catch (boost::bad_lexical_cast) | 295 catch (boost::bad_lexical_cast&) |
296 { | 296 { |
297 return PostDataStatus_NoLength; | 297 return PostDataStatus_NoLength; |
298 } | 298 } |
299 | 299 |
300 if (length < 0) | 300 if (length < 0) |
362 { | 362 { |
363 try | 363 try |
364 { | 364 { |
365 fileSize = boost::lexical_cast<size_t>(fileSizeStr->second); | 365 fileSize = boost::lexical_cast<size_t>(fileSizeStr->second); |
366 } | 366 } |
367 catch (boost::bad_lexical_cast) | 367 catch (boost::bad_lexical_cast&) |
368 { | 368 { |
369 return PostDataStatus_Failure; | 369 return PostDataStatus_Failure; |
370 } | 370 } |
371 } | 371 } |
372 | 372 |
415 } | 415 } |
416 | 416 |
417 last = it; | 417 last = it; |
418 } | 418 } |
419 } | 419 } |
420 catch (std::length_error) | 420 catch (std::length_error&) |
421 { | 421 { |
422 return PostDataStatus_Failure; | 422 return PostDataStatus_Failure; |
423 } | 423 } |
424 | 424 |
425 return PostDataStatus_Pending; | 425 return PostDataStatus_Pending; |