Mercurial > hg > orthanc
diff OrthancServer/Sources/Database/SQLiteDatabaseWrapper.cpp @ 4514:5b929e6b3c36
removal of "dicom-as-json" attachments
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 16 Feb 2021 12:18:41 +0100 |
parents | d9473bd5ed43 |
children | 2a0f8031fb93 |
line wrap: on
line diff
--- a/OrthancServer/Sources/Database/SQLiteDatabaseWrapper.cpp Fri Feb 12 12:13:19 2021 +0100 +++ b/OrthancServer/Sources/Database/SQLiteDatabaseWrapper.cpp Tue Feb 16 12:18:41 2021 +0100 @@ -803,7 +803,7 @@ } - void SQLiteDatabaseWrapper::ListAvailableAttachments(std::list<FileContentType>& target, + void SQLiteDatabaseWrapper::ListAvailableAttachments(std::set<FileContentType>& target, int64_t id) { target.clear(); @@ -814,7 +814,7 @@ while (s.Step()) { - target.push_back(static_cast<FileContentType>(s.ColumnInt(0))); + target.insert(static_cast<FileContentType>(s.ColumnInt(0))); } }