diff Applications/Samples/WebAssembly/SingleFrameViewer/SingleFrameViewerApplication.h @ 1573:32e0c007789d

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 21 Sep 2020 18:28:34 +0200
parents b4ccd4963d37
children 4fb8fdf03314
line wrap: on
line diff
--- a/Applications/Samples/WebAssembly/SingleFrameViewer/SingleFrameViewerApplication.h	Mon Sep 21 18:13:52 2020 +0200
+++ b/Applications/Samples/WebAssembly/SingleFrameViewer/SingleFrameViewerApplication.h	Mon Sep 21 18:28:34 2020 +0200
@@ -191,10 +191,10 @@
                      IWebViewerLoadersObserver* observer) :
       context_(context),
       observer_(observer),
-      loadThumbnails_(false)
+      loadThumbnails_(false),
+      loadedSeries_(boost::make_shared<LoadedDicomResources>(Orthanc::DICOM_TAG_SERIES_INSTANCE_UID)),
+      loadedStudies_(boost::make_shared<LoadedDicomResources>(Orthanc::DICOM_TAG_STUDY_INSTANCE_UID))
     {
-      loadedSeries_ = boost::make_shared<LoadedDicomResources>(Orthanc::DICOM_TAG_SERIES_INSTANCE_UID);
-      loadedStudies_ = boost::make_shared<LoadedDicomResources>(Orthanc::DICOM_TAG_STUDY_INSTANCE_UID);
     }
 
     static Orthanc::IDynamicObject* CreatePayload(Type type)