diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:11:57 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:19 +0100 |
commit | 047239d5ca229bb8ad85a2d9fcd2ae7b6f35b976 (patch) | |
tree | 139a191a1def79e706419db4090e958f5a217af5 /configmgr/source/access.cxx | |
parent | fb4ce444c2239aa089b0b3c8f4b7629a624edea2 (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: I520c7e35d539ba804da17185353317eca504a582
Diffstat (limited to 'configmgr/source/access.cxx')
-rw-r--r-- | configmgr/source/access.cxx | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/configmgr/source/access.cxx b/configmgr/source/access.cxx index fa2930a8cbf0..ecfbe580c620 100644 --- a/configmgr/source/access.cxx +++ b/configmgr/source/access.cxx @@ -153,7 +153,7 @@ void Access::markChildAsModified(rtl::Reference< ChildAccess > const & child) { if (!parent.is()) { break; } - assert(dynamic_cast< ChildAccess * >(p.get()) != 0); + assert(dynamic_cast< ChildAccess * >(p.get()) != nullptr); parent->modifiedChildren_.insert( ModifiedChildren::value_type( p->getNameInternal(), @@ -169,7 +169,7 @@ void Access::releaseChild(OUString const & name) { void Access::initBroadcaster( Modifications::Node const & modifications, Broadcaster * broadcaster) { - initBroadcasterAndChanges(modifications, broadcaster, 0); + initBroadcasterAndChanges(modifications, broadcaster, nullptr); } css::uno::Sequence< css::uno::Type > Access::getTypes() @@ -1311,7 +1311,7 @@ Access::Access(Components & components): Access::~Access() {} void Access::initDisposeBroadcaster(Broadcaster * broadcaster) { - assert(broadcaster != 0); + assert(broadcaster != nullptr); for (DisposeListeners::iterator i(disposeListeners_.begin()); i != disposeListeners_.end(); ++i) { @@ -1603,7 +1603,7 @@ void Access::insertLocalizedValueChild( OUString const & name, css::uno::Any const & value, Modifications * localModifications) { - assert(localModifications != 0); + assert(localModifications != nullptr); LocalizedPropertyNode * locprop = static_cast< LocalizedPropertyNode * >( getNode().get()); checkValue(value, locprop->getStaticType(), locprop->isNillable()); @@ -1618,7 +1618,7 @@ void Access::insertLocalizedValueChild( void Access::reportChildChanges( std::vector< css::util::ElementChange > * changes) { - assert(changes != 0); + assert(changes != nullptr); for (ModifiedChildren::iterator i(modifiedChildren_.begin()); i != modifiedChildren_.end(); ++i) { @@ -1636,7 +1636,7 @@ void Access::reportChildChanges( void Access::commitChildChanges( bool valid, Modifications * globalModifications) { - assert(globalModifications != 0); + assert(globalModifications != nullptr); while (!modifiedChildren_.empty()) { bool childValid = valid; ModifiedChildren::iterator i(modifiedChildren_.begin()); @@ -1688,7 +1688,7 @@ void Access::initBroadcasterAndChanges( Modifications::Node const & modifications, Broadcaster * broadcaster, std::vector< css::util::ElementChange > * allChanges) { - assert(broadcaster != 0); + assert(broadcaster != nullptr); std::vector< css::beans::PropertyChangeEvent > propChanges; bool collectPropChanges = !propertiesChangeListeners_.empty(); for (Modifications::Node::Children::const_iterator i( @@ -1753,7 +1753,7 @@ void Access::initBroadcasterAndChanges( css::uno::Any())); } } - if (allChanges != 0) { + if (allChanges != nullptr) { allChanges->push_back( css::util::ElementChange( css::uno::makeAny( @@ -1786,7 +1786,7 @@ void Access::initBroadcasterAndChanges( css::uno::Any())); //TODO: distinguish add/modify; non-void ReplacedElement } - if (allChanges != 0) { + if (allChanges != nullptr) { allChanges->push_back( css::util::ElementChange( css::uno::makeAny( @@ -1840,7 +1840,7 @@ void Access::initBroadcasterAndChanges( css::uno::Any())); } } - if (allChanges != 0) { + if (allChanges != nullptr) { allChanges->push_back( css::util::ElementChange( css::uno::makeAny( @@ -1874,7 +1874,7 @@ void Access::initBroadcasterAndChanges( css::uno::makeAny(i->first), child->asValue(), css::uno::Any())); } - if (allChanges != 0) { + if (allChanges != nullptr) { allChanges->push_back( css::util::ElementChange( css::uno::makeAny( @@ -1913,7 +1913,7 @@ void Access::initBroadcasterAndChanges( css::uno::Any())); //TODO: non-void ReplacedElement } - if (allChanges != 0) { + if (allChanges != nullptr) { OUStringBuffer path(getRelativePathRepresentation()); if (!path.isEmpty()) { path.append('/'); @@ -1971,7 +1971,7 @@ void Access::initBroadcasterAndChanges( css::uno::Any())); } } - if (allChanges != 0) { + if (allChanges != nullptr) { OUStringBuffer path( getRelativePathRepresentation()); if (!path.isEmpty()) { @@ -2008,7 +2008,7 @@ void Access::initBroadcasterAndChanges( css::uno::Any(), css::uno::Any())); //TODO: non-void ReplacedElement } - if (allChanges != 0) { + if (allChanges != nullptr) { OUStringBuffer path( getRelativePathRepresentation()); if (!path.isEmpty()) { @@ -2177,7 +2177,7 @@ bool Access::setChildProperty( OUString const & name, css::uno::Any const & value, Modifications * localModifications) { - assert(localModifications != 0); + assert(localModifications != nullptr); rtl::Reference< ChildAccess > child(getChild(name)); if (!child.is()) { return false; @@ -2297,7 +2297,7 @@ rtl::Reference< ChildAccess > Access::getFreeSetMember( "configmgr inappropriate set element", static_cast< cppu::OWeakObject * >(this), 1); } - assert(dynamic_cast< SetNode * >(getNode().get()) != 0); + assert(dynamic_cast< SetNode * >(getNode().get()) != nullptr); if (!static_cast< SetNode * >(getNode().get())->isValidTemplate( freeAcc->getNode()->getTemplateName())) { |