diff OrthancServer/Sources/Database/FindResponse.h @ 5673:ebcbb448bea8 find-refactoring

improved memory
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 06 Jul 2024 14:31:22 +0200
parents e300f22a46f0
children 74f3aab95886
line wrap: on
line diff
--- a/OrthancServer/Sources/Database/FindResponse.h	Sat Jul 06 14:24:45 2024 +0200
+++ b/OrthancServer/Sources/Database/FindResponse.h	Sat Jul 06 14:31:22 2024 +0200
@@ -69,14 +69,16 @@
     class ChildrenInformation : public boost::noncopyable
     {
     private:
-      typedef std::map<MetadataType, std::set<std::string> >  MetadataValues;
-      typedef std::map<DicomTag, std::set<std::string> >      MainDicomTagValues;
+      typedef std::map<MetadataType, std::set<std::string>* >  MetadataValues;
+      typedef std::map<DicomTag, std::set<std::string>* >      MainDicomTagValues;
 
       std::set<std::string>  identifiers_;
       MetadataValues         metadataValues_;
       MainDicomTagValues     mainDicomTagValues_;
 
     public:
+      ~ChildrenInformation();
+
       void AddIdentifier(const std::string& identifier);
 
       const std::set<std::string>& GetIdentifiers() const