Mercurial > hg > orthanc
diff OrthancServer/Plugins/Samples/ModalityWorklists/Plugin.cpp @ 5280:49477780e25a
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 15 Apr 2023 13:07:47 +0200 |
parents | 0ea402b4d901 |
children | 48b8dae6dc77 |
line wrap: on
line diff
--- a/OrthancServer/Plugins/Samples/ModalityWorklists/Plugin.cpp Sat Apr 15 10:33:17 2023 +0200 +++ b/OrthancServer/Plugins/Samples/ModalityWorklists/Plugin.cpp Sat Apr 15 13:07:47 2023 +0200 @@ -151,11 +151,12 @@ fs::path source(folder_); fs::directory_iterator end; - unsigned int parsedFilesCount = 0; - unsigned int matchedWorklistCount = 0; try { + unsigned int parsedFilesCount = 0; + unsigned int matchedWorklistCount = 0; + for (fs::directory_iterator it(source); it != end; ++it) { fs::file_type type(it->status().type());