diff OrthancServer/DicomInstanceToStore.cpp @ 1005:84b6d7bca6db lua-scripting

refactoring of ServerContext::Store
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 08 Jul 2014 14:34:11 +0200
parents a226e0959d8b
children 6e7e5ed91c2d
line wrap: on
line diff
--- a/OrthancServer/DicomInstanceToStore.cpp	Tue Jul 08 14:06:05 2014 +0200
+++ b/OrthancServer/DicomInstanceToStore.cpp	Tue Jul 08 14:34:11 2014 +0200
@@ -94,7 +94,7 @@
 
     if (!parsed_.HasContent())
     {
-      parsed_.TakeOwnership(new ParsedDicomFile(buffer_.GetContent()));
+      parsed_.TakeOwnership(new ParsedDicomFile(buffer_.GetConstContent()));
     }
 
     // At this point, we have parsed the DICOM file