Mercurial > hg > orthanc-transfers
diff Framework/PushMode/PushJob.cpp @ 31:cfeda58d0c8e
remove calls to deprecated classes of JsonCpp
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 22 Dec 2020 08:31:22 +0100 |
parents | dfc43678aecb |
children | 44a0430d7899 |
line wrap: on
line diff
--- a/Framework/PushMode/PushJob.cpp Fri Nov 06 18:06:55 2020 +0100 +++ b/Framework/PushMode/PushJob.cpp Tue Dec 22 08:31:22 2020 +0100 @@ -26,8 +26,6 @@ #include <Compatibility.h> // For std::unique_ptr #include <Logging.h> -#include <json/writer.h> - namespace OrthancPlugins { @@ -202,8 +200,7 @@ job.targetBucketSize_, 2 * job.targetBucketSize_, job_.query_.GetCompression()); - Json::FastWriter writer; - createTransaction_ = writer.write(push); + Orthanc::Toolbox::WriteFastJson(createTransaction_, push); info_.SetContent("Peer", job_.query_.GetPeer()); info_.SetContent("Compression", EnumerationToString(job_.query_.GetCompression()));