diff OrthancServer/ParsedDicomFile.cpp @ 1956:fc16ee04e71b

refactoring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 06 Apr 2016 14:22:48 +0200
parents 533ff46e944b
children 9e0f408db796
line wrap: on
line diff
--- a/OrthancServer/ParsedDicomFile.cpp	Wed Apr 06 08:41:47 2016 +0200
+++ b/OrthancServer/ParsedDicomFile.cpp	Wed Apr 06 14:22:48 2016 +0200
@@ -1234,7 +1234,7 @@
   {
     if (pimpl_->frameIndex_.get() == NULL)
     {
-      pimpl_->frameIndex_.reset(new DicomFrameIndex(*pimpl_->file_->getDataset()));
+      pimpl_->frameIndex_.reset(new DicomFrameIndex(*pimpl_->file_));
     }
 
     pimpl_->frameIndex_->GetRawFrame(target, frameId);
@@ -1265,6 +1265,6 @@
 
   unsigned int ParsedDicomFile::GetFramesCount() const
   {
-    return DicomFrameIndex::GetFramesCount(*pimpl_->file_->getDataset());
+    return DicomFrameIndex::GetFramesCount(*pimpl_->file_);
   }
 }