[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/akregator/src/libsyndication/src/rdf
From: Allen Winter <winter () kde ! org>
Date: 2006-03-31 22:00:20
Message-ID: 1143842420.456914.28623.nullmailer () svn ! kde ! org
[Download RAW message or body]
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()
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic