changeset 6:9288b168028c

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sun, 29 Aug 2021 10:32:33 +0200
parents b970bc11829e
children 42e622d2f5c5 7cbd6cfa4275
files Plugin/TciaImportJob.cpp
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Plugin/TciaImportJob.cpp	Sat Aug 28 15:39:56 2021 +0200
+++ b/Plugin/TciaImportJob.cpp	Sun Aug 29 10:32:33 2021 +0200
@@ -69,11 +69,9 @@
 
     if (source.isMember(SIZE))
     {
-      const std::string s = Orthanc::SerializationToolbox::ReadString(source, SIZE);
-      
       try
       {
-        size = boost::lexical_cast<uint64_t>(size);
+        size = boost::lexical_cast<uint64_t>(Orthanc::SerializationToolbox::ReadString(source, SIZE));
       }
       catch (boost::bad_lexical_cast&)
       {