From kde-commits Fri Mar 31 22:00:20 2006 From: Allen Winter Date: Fri, 31 Mar 2006 22:00:20 +0000 To: kde-commits Subject: KDE/kdepim/akregator/src/libsyndication/src/rdf Message-Id: <1143842420.456914.28623.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=114384243101183 SVN commit 525133 by winterz: Patch from John Clark. Thanks John! Better way to test for null KSharedPtrs. CCMAIL: jlc6@po.cwru.edu M +1 -1 literal.cpp M +1 -1 resource.cpp M +1 -1 resourcewrapper.cpp --- trunk/KDE/kdepim/akregator/src/libsyndication/src/rdf/literal.cpp #525132:525133 @@ -92,7 +92,7 @@ bool Literal::isNull() const { - return d == 0L; + return !d; } unsigned int Literal::id() const --- trunk/KDE/kdepim/akregator/src/libsyndication/src/rdf/resource.cpp #525132:525133 @@ -137,7 +137,7 @@ bool Resource::isNull() const { - return d == 0L; + return !d; } Model Resource::model() const --- trunk/KDE/kdepim/akregator/src/libsyndication/src/rdf/resourcewrapper.cpp #525132:525133 @@ -46,7 +46,7 @@ ResourceWrapper::ResourceWrapper(ResourcePtr resource) : d(new ResourceWrapperPrivate) { // if a null pointer is passed, we create a null resource - d->resource = resource == 0L ? ResourcePtr( new Resource() ) : resource; + d->resource = !resource ? ResourcePtr( new Resource() ) : resource; } ResourceWrapper::~ResourceWrapper()