Mercurial > hg > orthanc-stone
changeset 1572:1b3039384972
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 21 Sep 2020 18:13:52 +0200 |
parents | 85e117739eca |
children | 32e0c007789d |
files | OrthancStone/Sources/Oracle/GetOrthancImageCommand.cpp OrthancStone/Sources/Oracle/WebAssemblyOracle.cpp |
diffstat | 2 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancStone/Sources/Oracle/GetOrthancImageCommand.cpp Mon Sep 21 17:46:39 2020 +0200 +++ b/OrthancStone/Sources/Oracle/GetOrthancImageCommand.cpp Mon Sep 21 18:13:52 2020 +0200 @@ -134,7 +134,7 @@ image.reset(new Orthanc::PamReader(true)); #else // potentially unaligned, with is faster and consumes less heap memory - image.reset(new Orthanc::PamReader); + image.reset(new Orthanc::PamReader(false)); #endif dynamic_cast<Orthanc::PamReader&>(*image).ReadFromMemory(answer); break;
--- a/OrthancStone/Sources/Oracle/WebAssemblyOracle.cpp Mon Sep 21 17:46:39 2020 +0200 +++ b/OrthancStone/Sources/Oracle/WebAssemblyOracle.cpp Mon Sep 21 18:13:52 2020 +0200 @@ -342,19 +342,21 @@ { std::unique_ptr<FetchContext> context(reinterpret_cast<FetchContext*>(fetch->userData)); +#if 0 { const size_t kEmscriptenStatusTextSize = sizeof(emscripten_fetch_t::statusText); char message[kEmscriptenStatusTextSize + 1]; memcpy(message, fetch->statusText, kEmscriptenStatusTextSize); message[kEmscriptenStatusTextSize] = 0; - /*LOG(ERROR) << "Fetching " << fetch->url + LOG(ERROR) << "Fetching " << fetch->url << " failed, HTTP failure status code: " << fetch->status << " | statusText = " << message << " | numBytes = " << fetch->numBytes << " | totalBytes = " << fetch->totalBytes - << " | readyState = " << fetch->readyState;*/ + << " | readyState = " << fetch->readyState; } +#endif { OracleCommandExceptionMessage message