comparison OrthancFramework/Sources/DicomNetworking/Internals/GetScp.cpp @ 4200:7112a8af0b63

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 16 Sep 2020 20:53:31 +0200
parents 6774605d4341
children 6f5d4bfb2c90
comparison
equal deleted inserted replaced
4199:fbc49a65340a 4200:7112a8af0b63
98 std::string remoteIp_; 98 std::string remoteIp_;
99 std::string remoteAet_; 99 std::string remoteAet_;
100 std::string calledAet_; 100 std::string calledAet_;
101 int timeout_; 101 int timeout_;
102 102
103 GetScpData() 103 GetScpData() :
104 { 104 handler_(NULL),
105 handler_ = NULL; 105 lastRequest_(NULL),
106 lastRequest_ = NULL; 106 assoc_(NULL),
107 assoc_ = NULL; 107 timeout_(0)
108 {
108 }; 109 };
109 }; 110 };
110 111
111 static DcmDataset *BuildFailedInstanceList(const std::string& failedUIDs) 112 static DcmDataset *BuildFailedInstanceList(const std::string& failedUIDs)
112 { 113 {
246 247
247 OFCondition Internals::getScp(T_ASC_Association * assoc, 248 OFCondition Internals::getScp(T_ASC_Association * assoc,
248 T_DIMSE_Message * msg, 249 T_DIMSE_Message * msg,
249 T_ASC_PresentationContextID presID, 250 T_ASC_PresentationContextID presID,
250 IGetRequestHandler& handler, 251 IGetRequestHandler& handler,
251 std::string remoteIp, 252 const std::string& remoteIp,
252 std::string remoteAet, 253 const std::string& remoteAet,
253 std::string calledAet, 254 const std::string& calledAet,
254 int timeout) 255 int timeout)
255 { 256 {
256 GetScpData data; 257 GetScpData data;
257 data.lastRequest_ = NULL; 258 data.lastRequest_ = NULL;
258 data.handler_ = &handler; 259 data.handler_ = &handler;