Mercurial > hg > orthanc-stone
diff OrthancStone/Sources/Loaders/SeriesMetadataLoader.h @ 1571:85e117739eca
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 21 Sep 2020 17:46:39 +0200 |
parents | 244ad1e4e76a |
children | 4fb8fdf03314 |
line wrap: on
line diff
--- a/OrthancStone/Sources/Loaders/SeriesMetadataLoader.h Mon Sep 21 14:50:26 2020 +0200 +++ b/OrthancStone/Sources/Loaders/SeriesMetadataLoader.h Mon Sep 21 17:46:39 2020 +0200 @@ -48,7 +48,7 @@ std::string dicomDirPath_; std::map<std::string, unsigned int> seriesSize_; - SeriesMetadataLoader(boost::shared_ptr<DicomResourcesLoader>& loader); + explicit SeriesMetadataLoader(boost::shared_ptr<DicomResourcesLoader>& loader); bool IsScheduledWithHigherPriority(const std::string& seriesInstanceUid, int priority) const; @@ -128,14 +128,14 @@ class Factory : public ILoaderFactory { public: - virtual boost::shared_ptr<IObserver> Create(ILoadersContext::ILock& context) + virtual boost::shared_ptr<IObserver> Create(ILoadersContext::ILock& context) ORTHANC_OVERRIDE { return SeriesMetadataLoader::Create(context); } }; - static boost::shared_ptr<SeriesMetadataLoader> Create(ILoadersContext::ILock& context); + static boost::shared_ptr<SeriesMetadataLoader> Create(const ILoadersContext::ILock& context); class Accessor : public boost::noncopyable