- pointer types added for RepoInfos
authorJan Kupec <jkupec@suse.cz>
Thu, 31 Jul 2008 08:14:58 +0000 (08:14 +0000)
committerJan Kupec <jkupec@suse.cz>
Thu, 31 Jul 2008 08:14:58 +0000 (08:14 +0000)
zypp/RepoInfo.cc
zypp/RepoInfo.h
zypp/ServiceInfo.cc
zypp/ServiceInfo.h
zypp/repo/RepoInfoBase.cc
zypp/repo/RepoInfoBase.h

index 854108f..66c6f01 100644 (file)
@@ -88,6 +88,8 @@ namespace zypp
   //
   ///////////////////////////////////////////////////////////////////
 
+  IMPL_PTR_TYPE(RepoInfo);
+
   ///////////////////////////////////////////////////////////////////
   //
   //   METHOD NAME : RepoInfo::RepoInfo
index 37d1f5c..565d23d 100644 (file)
@@ -28,6 +28,8 @@
 namespace zypp
 { /////////////////////////////////////////////////////////////////
 
+  DEFINE_PTR_TYPE(RepoInfo);
+
   ///////////////////////////////////////////////////////////////////
   //
   //   CLASS NAME : RepoInfo
index e995370..2a91d41 100644 (file)
@@ -65,6 +65,8 @@ namespace zypp
   //
   ///////////////////////////////////////////////////////////////////
 
+  IMPL_PTR_TYPE(ServiceInfo);
+
   const ServiceInfo ServiceInfo::noService;
   
   ServiceInfo::ServiceInfo() : _pimpl( new Impl() ) {}
index fb03aa4..ce337d5 100644 (file)
@@ -23,6 +23,7 @@
 namespace zypp
 { /////////////////////////////////////////////////////////////////
 
+  DEFINE_PTR_TYPE(ServiceInfo);
 
   ///////////////////////////////////////////////////////////////////
   //
index 48f12da..79f3a6a 100644 (file)
@@ -59,6 +59,8 @@ namespace zypp
   //
   ///////////////////////////////////////////////////////////////////
 
+  IMPL_PTR_TYPE(RepoInfoBase);
+
   ///////////////////////////////////////////////////////////////////
   //
   //    METHOD NAME : RepoInfoBase::RepoInfoBase
index 3198645..1d419d4 100644 (file)
@@ -15,6 +15,7 @@
 #include <iosfwd>
 
 #include "zypp/base/PtrTypes.h"
+#include "zypp/base/ReferenceCounted.h"
 
 #include "zypp/Pathname.h"
 
@@ -25,7 +26,8 @@ namespace zypp
   namespace repo
   { /////////////////////////////////////////////////////////////////
     
-    
+    DEFINE_PTR_TYPE(RepoInfoBase);
+
     ///////////////////////////////////////////////////////////////////
     //
     //    CLASS NAME : RepoInfoBase
@@ -34,7 +36,7 @@ namespace zypp
      * \short Base class implementing common features of \ref RepoInfo and
      *        \ref ServiceInfo.
      */
-    class RepoInfoBase
+    class RepoInfoBase : public base::ReferenceCounted
     {
       friend std::ostream & operator<<( std::ostream & str, const RepoInfoBase & obj );