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()