comparison Core/MultiThreading/RunnableWorkersPool.cpp @ 1847:559956d5ceb2

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 30 Nov 2015 15:34:14 +0100
parents ee4367497d0d
children b1291df2f780
comparison
equal deleted inserted replaced
1846:3dcf5c0734c9 1847:559956d5ceb2
103 103
104 RunnableWorkersPool::RunnableWorkersPool(size_t countWorkers) : pimpl_(new PImpl) 104 RunnableWorkersPool::RunnableWorkersPool(size_t countWorkers) : pimpl_(new PImpl)
105 { 105 {
106 pimpl_->continue_ = true; 106 pimpl_->continue_ = true;
107 107
108 if (countWorkers <= 0) 108 if (countWorkers == 0)
109 { 109 {
110 throw OrthancException(ErrorCode_ParameterOutOfRange); 110 throw OrthancException(ErrorCode_ParameterOutOfRange);
111 } 111 }
112 112
113 pimpl_->workers_.resize(countWorkers); 113 pimpl_->workers_.resize(countWorkers);