Mercurial > hg > orthanc
diff OrthancServer/DicomProtocol/DicomUserConnection.cpp @ 656:08eca5d86aad
fixes to cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 04 Nov 2013 11:19:31 +0100 |
parents | 1b2cdc855bd3 |
children | 5425bb6f1ea5 |
line wrap: on
line diff
--- a/OrthancServer/DicomProtocol/DicomUserConnection.cpp Wed Oct 30 11:56:28 2013 +0100 +++ b/OrthancServer/DicomProtocol/DicomUserConnection.cpp Mon Nov 04 11:19:31 2013 +0100 @@ -151,7 +151,7 @@ const char* asFallback[2]; std::set<std::string>::const_iterator it = abstractSyntaxes.begin(); asFallback[0] = it->c_str(); - it++; + ++it; asFallback[1] = it->c_str(); unsigned int presentationContextId = 1; @@ -460,12 +460,13 @@ } - DicomUserConnection::DicomUserConnection() : pimpl_(new PImpl) + DicomUserConnection::DicomUserConnection() : + pimpl_(new PImpl), + localAet_("STORESCU"), + distantAet_("ANY-SCP"), + distantHost_("127.0.0.1") { - localAet_ = "STORESCU"; - distantAet_ = "ANY-SCP"; distantPort_ = 104; - distantHost_ = "127.0.0.1"; manufacturer_ = ModalityManufacturer_Generic; pimpl_->net_ = NULL;