diff OrthancStone/Sources/Loaders/DicomResourcesLoader.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/DicomResourcesLoader.h	Mon Sep 21 14:50:26 2020 +0200
+++ b/OrthancStone/Sources/Loaders/DicomResourcesLoader.h	Mon Sep 21 17:46:39 2020 +0200
@@ -93,7 +93,7 @@
                                              boost::shared_ptr<unsigned int> remainingCommands,
                                              boost::shared_ptr<Orthanc::IDynamicObject> userPayload);
     
-    DicomResourcesLoader(ILoadersContext& context) :
+    explicit DicomResourcesLoader(ILoadersContext& context) :
       context_(context)
     {
     }
@@ -153,14 +153,14 @@
     class Factory : public ILoaderFactory
     {
     public:
-      virtual boost::shared_ptr<IObserver> Create(ILoadersContext::ILock& stone)
+      virtual boost::shared_ptr<IObserver> Create(ILoadersContext::ILock& stone) ORTHANC_OVERRIDE
       {
         return DicomResourcesLoader::Create(stone);
       }
     };
 
 
-    static boost::shared_ptr<DicomResourcesLoader> Create(ILoadersContext::ILock& stone);
+    static boost::shared_ptr<DicomResourcesLoader> Create(const ILoadersContext::ILock& stone);
 
     void ScheduleGetDicomWeb(boost::shared_ptr<LoadedDicomResources> target,
                              int priority,