- using set<ResObject_Ptr> to store data of atoms
authorJan Kupec <jkupec@suse.cz>
Thu, 17 May 2007 13:55:37 +0000 (13:55 +0000)
committerJan Kupec <jkupec@suse.cz>
Thu, 17 May 2007 13:55:37 +0000 (13:55 +0000)
- Added missing IMPL_PTR_TYPE(Atom)

zypp/data/ResolvableData.cc
zypp/data/ResolvableData.h

index 11362be..60b005e 100644 (file)
@@ -20,6 +20,7 @@ IMPL_PTR_TYPE(Resolvable);
 IMPL_PTR_TYPE(ResObject);
 IMPL_PTR_TYPE(Script);
 IMPL_PTR_TYPE(Message);
+IMPL_PTR_TYPE(Atom);
 IMPL_PTR_TYPE(Patch);
 IMPL_PTR_TYPE(Pattern);
 IMPL_PTR_TYPE(Product);
index dd3c6e7..82e8462 100644 (file)
@@ -191,7 +191,6 @@ namespace data
   {
     public:
       Patch()
-        : rebootNeeded(false), affectsPkgManager(false)
       {};
 
       /** Patch ID */
@@ -206,11 +205,12 @@ namespace data
       DefaultIntegral<bool,false> rebootNeeded;
       /** Does the patch affect the package manager itself? */
       DefaultIntegral<bool,false> affectsPkgManager;
-  
-      /** The list of all atoms building the patch.
-       * \todo See whether we need this.
+
+      /**
+       * The set of all atoms building the patch. These can be either
+       * \ref Atom, \ref Message or \ref Script.
        */
-      std::set<RecordId> atomList;
+      std::set<ResObject_Ptr> atoms;
   };
 
   ///////////////////////////////////////////////////////////////////