Author: mlandres Date: Tue Sep 23 14:35:26 2008 New Revision: 11136 URL: http://svn.opensuse.org/viewcvs/zypp?rev=11136&view=rev Log: rename as to asKind Modified: trunk/libzypp/zypp/ResObject.h Modified: trunk/libzypp/zypp/ResObject.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/ResObject.h?rev=11136&r1=11135&r2=11136&view=diff ============================================================================== --- trunk/libzypp/zypp/ResObject.h (original) +++ trunk/libzypp/zypp/ResObject.h Tue Sep 23 14:35:26 2008 @@ -57,17 +57,17 @@ * \return \c NULL if \c this is not of the specified kind. * \code * PoolItem pi; - * Package::constPtr pkg = pi->as<Package>(); + * Package::constPtr pkg = pi->asKind<Package>(); * * if ( pi->isKind<Package>() ) - * DBG << pi->as<Package>()->keywords() << endl; + * DBG << pi->asKind<Package>()->keywords() << endl; * \endcode */ template<class _Res> - inline typename ResTraits<_Res>::constPtrType as() const; + inline typename ResTraits<_Res>::constPtrType asKind() const; template<class _Res> - inline typename ResTraits<_Res>::PtrType as(); + inline typename ResTraits<_Res>::PtrType asKind(); public: /** \name Locale support. @@ -261,11 +261,11 @@ { return dynamic_pointer_cast<const _Res>(p); } template<class _Res> - inline typename ResTraits<_Res>::constPtrType ResObject::as() const + inline typename ResTraits<_Res>::constPtrType ResObject::asKind() const { return make<_Res>( *this ); } template<class _Res> - inline typename ResTraits<_Res>::PtrType ResObject::as() + inline typename ResTraits<_Res>::PtrType ResObject::asKind() { return make<_Res>( *this ); } ///////////////////////////////////////////////////////////////// -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org