Mercurial > hg > orthanc-stone
diff Samples/WebAssembly/SingleFrameViewer/SingleFrameViewerApplication.h @ 1472:474360793956
DicomResourcesLoader::Create()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 15 Jun 2020 16:26:57 +0200 |
parents | 15173a383a00 |
children | d1dde1f86d4a |
line wrap: on
line diff
--- a/Samples/WebAssembly/SingleFrameViewer/SingleFrameViewerApplication.h Mon Jun 15 12:57:54 2020 +0200 +++ b/Samples/WebAssembly/SingleFrameViewer/SingleFrameViewerApplication.h Mon Jun 15 16:26:57 2020 +0200 @@ -101,8 +101,7 @@ { std::auto_ptr<ILoadersContext::ILock> lock(context.Lock()); - DicomResourcesLoader::Factory f; - application->dicomLoader_ = boost::dynamic_pointer_cast<DicomResourcesLoader>(f.Create(*lock)); + application->dicomLoader_ = DicomResourcesLoader::Create(*lock); } application->Register<DicomResourcesLoader::SuccessMessage>(*application->dicomLoader_, &Application::Handle); @@ -313,10 +312,7 @@ { std::auto_ptr<ILoadersContext::ILock> lock(context.Lock()); - { - DicomResourcesLoader::Factory f; - application->resourcesLoader_ = boost::dynamic_pointer_cast<DicomResourcesLoader>(f.Create(*lock)); - } + application->resourcesLoader_ = DicomResourcesLoader::Create(*lock); { SeriesThumbnailsLoader::Factory f;