Mercurial > hg > orthanc
diff OrthancServer/Search/ListConstraint.cpp @ 1756:03b030680e3d db-changes
refactoring
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 28 Oct 2015 12:14:06 +0100 |
parents | 3a4f7dc00f49 |
children | af6840eb23ee |
line wrap: on
line diff
--- a/OrthancServer/Search/ListConstraint.cpp Wed Oct 28 12:02:15 2015 +0100 +++ b/OrthancServer/Search/ListConstraint.cpp Wed Oct 28 12:14:06 2015 +0100 @@ -51,14 +51,15 @@ } - void ListConstraint::Setup(LookupIdentifierQuery& lookup) const + void ListConstraint::Setup(LookupIdentifierQuery& lookup, + const DicomTag& tag) const { LookupIdentifierQuery::Disjunction& target = lookup.AddDisjunction(); for (std::set<std::string>::const_iterator it = allowedValues_.begin(); it != allowedValues_.end(); ++it) { - target.Add(GetTag(), IdentifierConstraintType_Equal, *it); + target.Add(tag, IdentifierConstraintType_Equal, *it); } }