comparison Core/Images/JpegWriter.cpp @ 2407:5edec967055e

fix sandboxed builds
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 20 Sep 2017 17:02:27 +0200
parents a3a65de1840f
children 878b59270859
comparison
equal deleted inserted replaced
2406:f0cfacd0c9b8 2407:5edec967055e
160 fclose(fp); 160 fclose(fp);
161 } 161 }
162 #endif 162 #endif
163 163
164 164
165 #if ORTHANC_SANDBOXED == 0
165 void JpegWriter::WriteToMemoryInternal(std::string& jpeg, 166 void JpegWriter::WriteToMemoryInternal(std::string& jpeg,
166 unsigned int width, 167 unsigned int width,
167 unsigned int height, 168 unsigned int height,
168 unsigned int pitch, 169 unsigned int pitch,
169 PixelFormat format, 170 PixelFormat format,
204 // Everything went fine, "setjmp()" didn't get called 205 // Everything went fine, "setjmp()" didn't get called
205 206
206 jpeg.assign(reinterpret_cast<const char*>(data), size); 207 jpeg.assign(reinterpret_cast<const char*>(data), size);
207 free(data); 208 free(data);
208 } 209 }
210 #endif
209 } 211 }