diff OrthancCppClient/Instance.cpp @ 797:37adac56017a

ImageAccessor abstraction
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 06 May 2014 12:47:26 +0200
parents d380222b4c2a
children a811bdf8b8eb
line wrap: on
line diff
--- a/OrthancCppClient/Instance.cpp	Tue May 06 12:09:11 2014 +0200
+++ b/OrthancCppClient/Instance.cpp	Tue May 06 12:47:26 2014 +0200
@@ -178,13 +178,13 @@
   const void* Instance::GetBuffer()
   {
     DownloadImage();
-    return reader_->GetBuffer();
+    return reader_->GetConstBuffer();
   }
 
   const void* Instance::GetBuffer(unsigned int y)
   {
     DownloadImage();
-    return reader_->GetBuffer(y);
+    return reader_->GetConstRow(y);
   }
 
   void Instance::DiscardImage()