comparison Core/DicomNetworking/DicomUserConnection.cpp @ 3402:cf31b5bacce3

removing unneeded casts
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 07 Jun 2019 15:06:17 +0200
parents 872bd3b6ec72
children bdafff1ce443 763533d6dd67
comparison
equal deleted inserted replaced
3401:962e5f00744b 3402:cf31b5bacce3
1121 void DicomUserConnection::Store(const std::string& buffer, 1121 void DicomUserConnection::Store(const std::string& buffer,
1122 const std::string& moveOriginatorAET, 1122 const std::string& moveOriginatorAET,
1123 uint16_t moveOriginatorID) 1123 uint16_t moveOriginatorID)
1124 { 1124 {
1125 if (buffer.size() > 0) 1125 if (buffer.size() > 0)
1126 Store(reinterpret_cast<const char*>(&buffer[0]), buffer.size(), moveOriginatorAET, moveOriginatorID); 1126 Store(&buffer[0], buffer.size(), moveOriginatorAET, moveOriginatorID);
1127 else 1127 else
1128 Store(NULL, 0, moveOriginatorAET, moveOriginatorID); 1128 Store(NULL, 0, moveOriginatorAET, moveOriginatorID);
1129 } 1129 }
1130 1130
1131 void DicomUserConnection::StoreFile(const std::string& path, 1131 void DicomUserConnection::StoreFile(const std::string& path,