Mercurial > hg > orthanc-stone
diff Applications/Samples/Common/RtViewerApp.cpp @ 1573:32e0c007789d
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 21 Sep 2020 18:28:34 +0200 |
parents | 6e0da8370270 |
children | fb5e620430ae |
line wrap: on
line diff
--- a/Applications/Samples/Common/RtViewerApp.cpp Mon Sep 21 18:13:52 2020 +0200 +++ b/Applications/Samples/Common/RtViewerApp.cpp Mon Sep 21 18:28:34 2020 +0200 @@ -74,12 +74,12 @@ return geometry; } - RtViewerApp::RtViewerApp() - : undoStack_(new UndoStack) + RtViewerApp::RtViewerApp() : + undoStack_(new UndoStack), + // Create the volumes that will be filled later on + ctVolume_(boost::make_shared<DicomVolumeImage>()), + doseVolume_(boost::make_shared<DicomVolumeImage>()) { - // Create the volumes that will be filled later on - ctVolume_ = boost::make_shared<DicomVolumeImage>(); - doseVolume_ = boost::make_shared<DicomVolumeImage>(); } boost::shared_ptr<RtViewerApp> RtViewerApp::Create()