Mercurial > hg > orthanc
diff OrthancServer/Sources/Database/ResourcesContent.cpp @ 5215:8b6da4fdf9fe db-protobuf
cleaning ResourcesContent::TagValue and ResourcesContent::Metadata
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 03 Apr 2023 14:17:39 +0200 |
parents | 0ea402b4d901 |
children | 48b8dae6dc77 |
line wrap: on
line diff
--- a/OrthancServer/Sources/Database/ResourcesContent.cpp Mon Apr 03 13:30:06 2023 +0200 +++ b/OrthancServer/Sources/Database/ResourcesContent.cpp Mon Apr 03 14:17:39 2023 +0200 @@ -140,13 +140,13 @@ for (std::list<TagValue>::const_iterator it = tags_.begin(); it != tags_.end(); ++it) { - if (it->isIdentifier_) + if (it->IsIdentifier()) { - compatibility.SetIdentifierTag(it->resourceId_, it->tag_, it->value_); + compatibility.SetIdentifierTag(it->GetResourceId(), it->GetTag(), it->GetValue()); } else { - compatibility.SetMainDicomTag(it->resourceId_, it->tag_, it->value_); + compatibility.SetMainDicomTag(it->GetResourceId(), it->GetTag(), it->GetValue()); } } @@ -154,7 +154,7 @@ it = metadata_.begin(); it != metadata_.end(); ++it) { assert(isNewResource_); - compatibility.SetMetadata(it->resourceId_, it->metadata_, it->value_, 0 /* initial revision number */); + compatibility.SetMetadata(it->GetResourceId(), it->GetType(), it->GetValue(), 0 /* initial revision number */); } } }