Mercurial > hg > orthanc
diff OrthancServer/ServerIndex.cpp @ 233:c11273198cef
rename
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 30 Nov 2012 14:30:05 +0100 |
parents | 5368bbe813cf |
children | 16a4ac70bd8a |
line wrap: on
line diff
--- a/OrthancServer/ServerIndex.cpp Fri Nov 30 14:22:27 2012 +0100 +++ b/OrthancServer/ServerIndex.cpp Fri Nov 30 14:30:05 2012 +0100 @@ -548,7 +548,7 @@ result["Type"] = "Instance"; FileInfo attachment; - if (!db_->LookupAttachment(attachment, id, FileType_Dicom)) + if (!db_->LookupAttachment(attachment, id, FileContentType_Dicom)) { throw OrthancException(ErrorCode_InternalError); } @@ -579,7 +579,7 @@ bool ServerIndex::LookupAttachment(FileInfo& attachment, const std::string& instanceUuid, - FileType contentType) + FileContentType contentType) { boost::mutex::scoped_lock lock(mutex_); @@ -593,7 +593,7 @@ if (db_->LookupAttachment(attachment, id, contentType)) { - assert(attachment.GetFileType() == contentType); + assert(attachment.GetContentType() == contentType); return true; } else