From de29ac09535d814e4be7e1bf0f10beb9f0f847e3 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 10 Nov 2015 10:22:39 +0100 Subject: loplugin:nullptr (automatic rewrite) Change-Id: I765d2a600f9c57da50c85354688e3ae796750d94 --- sc/source/ui/attrdlg/tabpages.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sc/source/ui/attrdlg/tabpages.cxx') diff --git a/sc/source/ui/attrdlg/tabpages.cxx b/sc/source/ui/attrdlg/tabpages.cxx index ba339e42ab85..cd27c35386fe 100644 --- a/sc/source/ui/attrdlg/tabpages.cxx +++ b/sc/source/ui/attrdlg/tabpages.cxx @@ -83,7 +83,7 @@ void ScTabPageProtection::Reset( const SfxItemSet* rCoreAttrs ) // Initialize variables sal_uInt16 nWhich = GetWhich( SID_SCATTR_PROTECTION ); - const ScProtectionAttr* pProtAttr = NULL; + const ScProtectionAttr* pProtAttr = nullptr; SfxItemState eItemState = rCoreAttrs->GetItemState( nWhich, false, reinterpret_cast(&pProtAttr) ); @@ -92,7 +92,7 @@ void ScTabPageProtection::Reset( const SfxItemSet* rCoreAttrs ) pProtAttr = static_cast(&(rCoreAttrs->Get(nWhich))); // At SfxItemState::DONTCARE let to 0 - bTriEnabled = ( pProtAttr == NULL ); // TriState, when DontCare + bTriEnabled = ( pProtAttr == nullptr ); // TriState, when DontCare bDontCare = bTriEnabled; if (bTriEnabled) { -- cgit