diff OrthancServer/Sources/Search/DatabaseLookup.cpp @ 5248:a7d95f951f8a db-protobuf

replaced "WithLabels" and "WithoutLabels", by "Labels" and "LabelsConstraint"
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 07 Apr 2023 22:18:37 +0200
parents 72dfa0ac84eb
children 48b8dae6dc77
line wrap: on
line diff
--- a/OrthancServer/Sources/Search/DatabaseLookup.cpp	Fri Apr 07 15:44:12 2023 +0200
+++ b/OrthancServer/Sources/Search/DatabaseLookup.cpp	Fri Apr 07 22:18:37 2023 +0200
@@ -370,22 +370,12 @@
   }
 
 
-  void DatabaseLookup::AddWithLabel(const std::string& label)
+  void DatabaseLookup::AddLabel(const std::string& label)
   {
     if (!label.empty())
     {
       ServerToolbox::CheckValidLabel(label);
-      withLabels_.insert(label);
-    }
-  }
-  
-
-  void DatabaseLookup::AddWithoutLabel(const std::string& label)
-  {
-    if (!label.empty())
-    {
-      ServerToolbox::CheckValidLabel(label);
-      withoutLabels_.insert(label);
+      labels_.insert(label);
     }
   }
 }