Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Oracle/GetOrthancImageCommand.cpp @ 1572:1b3039384972
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 21 Sep 2020 18:13:52 +0200 |
parents | 85e117739eca |
children | 4fb8fdf03314 |
comparison
equal
deleted
inserted
replaced
1571:85e117739eca | 1572:1b3039384972 |
---|---|
132 // Indeed, even though alignment is not required in Web Assembly, | 132 // Indeed, even though alignment is not required in Web Assembly, |
133 // Emscripten seems to check it and bail out if addresses are "odd" | 133 // Emscripten seems to check it and bail out if addresses are "odd" |
134 image.reset(new Orthanc::PamReader(true)); | 134 image.reset(new Orthanc::PamReader(true)); |
135 #else | 135 #else |
136 // potentially unaligned, with is faster and consumes less heap memory | 136 // potentially unaligned, with is faster and consumes less heap memory |
137 image.reset(new Orthanc::PamReader); | 137 image.reset(new Orthanc::PamReader(false)); |
138 #endif | 138 #endif |
139 dynamic_cast<Orthanc::PamReader&>(*image).ReadFromMemory(answer); | 139 dynamic_cast<Orthanc::PamReader&>(*image).ReadFromMemory(answer); |
140 break; | 140 break; |
141 } | 141 } |
142 | 142 |