Mercurial > hg > orthanc-stone
diff Framework/Loaders/OrthancSeriesVolumeProgressiveLoader.cpp @ 1128:8e3763d1736a broker
removing CustomOracleCommand
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 05 Nov 2019 22:39:25 +0100 |
parents | 81b29bc7c3d4 |
children | 87fbeb823375 |
line wrap: on
line diff
--- a/Framework/Loaders/OrthancSeriesVolumeProgressiveLoader.cpp Tue Nov 05 19:01:57 2019 +0100 +++ b/Framework/Loaders/OrthancSeriesVolumeProgressiveLoader.cpp Tue Nov 05 22:39:25 2019 +0100 @@ -237,7 +237,7 @@ } - static unsigned int GetSliceIndexPayload(const OracleCommandWithPayload& command) + static unsigned int GetSliceIndexPayload(const OracleCommandBase& command) { return dynamic_cast< const Orthanc::SingleValueObject<unsigned int>& >(command.GetPayload()).GetValue(); } @@ -261,7 +261,7 @@ throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError); } - std::auto_ptr<OracleCommandWithPayload> command; + std::auto_ptr<OracleCommandBase> command; if (quality == BEST_QUALITY) { @@ -291,7 +291,7 @@ command.reset(tmp.release()); } - command->SetPayload(new Orthanc::SingleValueObject<unsigned int>(sliceIndex)); + command->AcquirePayload(new Orthanc::SingleValueObject<unsigned int>(sliceIndex)); boost::shared_ptr<IObserver> observer(GetSharedObserver()); oracle_.Schedule(observer, command.release());