From 56c7322b32130e0f86636e2a9c0201c0de986737 Mon Sep 17 00:00:00 2001 From: Jan Kupec Date: Thu, 31 Jul 2008 08:14:58 +0000 Subject: [PATCH] - pointer types added for RepoInfos --- zypp/RepoInfo.cc | 2 ++ zypp/RepoInfo.h | 2 ++ zypp/ServiceInfo.cc | 2 ++ zypp/ServiceInfo.h | 1 + zypp/repo/RepoInfoBase.cc | 2 ++ zypp/repo/RepoInfoBase.h | 6 ++++-- 6 files changed, 13 insertions(+), 2 deletions(-) diff --git a/zypp/RepoInfo.cc b/zypp/RepoInfo.cc index 854108f..66c6f01 100644 --- a/zypp/RepoInfo.cc +++ b/zypp/RepoInfo.cc @@ -88,6 +88,8 @@ namespace zypp // /////////////////////////////////////////////////////////////////// + IMPL_PTR_TYPE(RepoInfo); + /////////////////////////////////////////////////////////////////// // // METHOD NAME : RepoInfo::RepoInfo diff --git a/zypp/RepoInfo.h b/zypp/RepoInfo.h index 37d1f5c..565d23d 100644 --- a/zypp/RepoInfo.h +++ b/zypp/RepoInfo.h @@ -28,6 +28,8 @@ namespace zypp { ///////////////////////////////////////////////////////////////// + DEFINE_PTR_TYPE(RepoInfo); + /////////////////////////////////////////////////////////////////// // // CLASS NAME : RepoInfo diff --git a/zypp/ServiceInfo.cc b/zypp/ServiceInfo.cc index e995370..2a91d41 100644 --- a/zypp/ServiceInfo.cc +++ b/zypp/ServiceInfo.cc @@ -65,6 +65,8 @@ namespace zypp // /////////////////////////////////////////////////////////////////// + IMPL_PTR_TYPE(ServiceInfo); + const ServiceInfo ServiceInfo::noService; ServiceInfo::ServiceInfo() : _pimpl( new Impl() ) {} diff --git a/zypp/ServiceInfo.h b/zypp/ServiceInfo.h index fb03aa4..ce337d5 100644 --- a/zypp/ServiceInfo.h +++ b/zypp/ServiceInfo.h @@ -23,6 +23,7 @@ namespace zypp { ///////////////////////////////////////////////////////////////// + DEFINE_PTR_TYPE(ServiceInfo); /////////////////////////////////////////////////////////////////// // diff --git a/zypp/repo/RepoInfoBase.cc b/zypp/repo/RepoInfoBase.cc index 48f12da..79f3a6a 100644 --- a/zypp/repo/RepoInfoBase.cc +++ b/zypp/repo/RepoInfoBase.cc @@ -59,6 +59,8 @@ namespace zypp // /////////////////////////////////////////////////////////////////// + IMPL_PTR_TYPE(RepoInfoBase); + /////////////////////////////////////////////////////////////////// // // METHOD NAME : RepoInfoBase::RepoInfoBase diff --git a/zypp/repo/RepoInfoBase.h b/zypp/repo/RepoInfoBase.h index 3198645..1d419d4 100644 --- a/zypp/repo/RepoInfoBase.h +++ b/zypp/repo/RepoInfoBase.h @@ -15,6 +15,7 @@ #include #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 ); -- 2.7.4