changeset 239:f1d1dd716eaa

fix for msvc 2008
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 09 Nov 2018 10:25:02 +0100
parents 11d05a138412
children 01e147cf7d5c
files Plugin/DicomWebClient.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Plugin/DicomWebClient.cpp	Thu Nov 08 16:31:08 2018 +0100
+++ b/Plugin/DicomWebClient.cpp	Fri Nov 09 10:25:02 2018 +0100
@@ -546,8 +546,8 @@
 
   // Strip the trailing and heading quotes if present
   if (boundary.length() > 2 &&
-      boundary.front() == '"' &&
-      boundary.back() == '"')
+      boundary[0] == '"' &&
+      boundary[boundary.size() - 1] == '"')
   {
     boundary = boundary.substr(1, boundary.size() - 2);
   }