# HG changeset patch # User Sebastien Jodogne # Date 1465824380 -7200 # Node ID 0ae26237569a369b944b0b8fcbd39b433a5d47c5 # Parent bcc575732aefd275de5b9c30f458b632321106eb cppcheck diff -r bcc575732aef -r 0ae26237569a Core/HttpClient.cpp --- a/Core/HttpClient.cpp Mon Jun 13 15:07:53 2016 +0200 +++ b/Core/HttpClient.cpp Mon Jun 13 15:26:20 2016 +0200 @@ -240,7 +240,7 @@ } - HttpClient::HttpClient() : pimpl_(new PImpl) + HttpClient::HttpClient() : pimpl_(new PImpl), verifyPeers_(true) { Setup(); } diff -r bcc575732aef -r 0ae26237569a Core/MultiThreading/BagOfTasks.h --- a/Core/MultiThreading/BagOfTasks.h Mon Jun 13 15:07:53 2016 +0200 +++ b/Core/MultiThreading/BagOfTasks.h Mon Jun 13 15:26:20 2016 +0200 @@ -49,7 +49,7 @@ public: ~BagOfTasks() { - for (Tasks::iterator it = tasks_.begin(); it != tasks_.end(); it++) + for (Tasks::iterator it = tasks_.begin(); it != tasks_.end(); ++it) { delete *it; } diff -r bcc575732aef -r 0ae26237569a Core/MultiThreading/BagOfTasksProcessor.cpp --- a/Core/MultiThreading/BagOfTasksProcessor.cpp Mon Jun 13 15:07:53 2016 +0200 +++ b/Core/MultiThreading/BagOfTasksProcessor.cpp Mon Jun 13 15:26:20 2016 +0200 @@ -198,7 +198,7 @@ countBags_(0), continue_(true) { - if (countThreads <= 0) + if (countThreads == 0) { throw OrthancException(ErrorCode_ParameterOutOfRange); } diff -r bcc575732aef -r 0ae26237569a OrthancServer/ParsedDicomFile.cpp --- a/OrthancServer/ParsedDicomFile.cpp Mon Jun 13 15:07:53 2016 +0200 +++ b/OrthancServer/ParsedDicomFile.cpp Mon Jun 13 15:26:20 2016 +0200 @@ -1323,6 +1323,7 @@ case EXS_JPEG2000LosslessOnly: case EXS_JPEG2000: mime = "image/jp2"; + break; default: mime = "application/octet-stream";