summaryrefslogtreecommitdiff
path: root/unotools/source/config/securityoptions.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:27:55 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:57 +0100
commitcf7dc8bc19650fe5e814205b512dffad8299c276 (patch)
treeae3653c5038c3e2d6f2afce7ae6ca21fdf848a2e /unotools/source/config/securityoptions.cxx
parent34a66ff58a20856fb4388e523becdd5397e08fb0 (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: Ib80c434598481ca0d05c800991fea9b30ef329f8
Diffstat (limited to 'unotools/source/config/securityoptions.cxx')
-rw-r--r--unotools/source/config/securityoptions.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/unotools/source/config/securityoptions.cxx b/unotools/source/config/securityoptions.cxx
index df767dfeb620..fad440be2400 100644
--- a/unotools/source/config/securityoptions.cxx
+++ b/unotools/source/config/securityoptions.cxx
@@ -539,12 +539,12 @@ bool SvtSecurityOptions_Impl::GetOption( SvtSecurityOptions::EOption eOption, bo
rpRO = &m_bROBlockUntrustedRefererLinks;
break;
default:
- rpValue = NULL;
- rpRO = NULL;
+ rpValue = nullptr;
+ rpRO = nullptr;
break;
}
- return rpValue != NULL;
+ return rpValue != nullptr;
}
void SvtSecurityOptions_Impl::Notify( const Sequence< OUString >& seqPropertyNames )
@@ -944,7 +944,7 @@ Sequence< OUString > SvtSecurityOptions_Impl::GetPropertyNames()
// DON'T DO IT IN YOUR HEADER!
// see definition for further information
-SvtSecurityOptions_Impl* SvtSecurityOptions::m_pDataContainer = NULL;
+SvtSecurityOptions_Impl* SvtSecurityOptions::m_pDataContainer = nullptr;
sal_Int32 SvtSecurityOptions::m_nRefCount = 0;
SvtSecurityOptions::SvtSecurityOptions()
@@ -954,7 +954,7 @@ SvtSecurityOptions::SvtSecurityOptions()
// Increase our refcount ...
++m_nRefCount;
// ... and initialize our data container only if it not already exist!
- if( m_pDataContainer == NULL )
+ if( m_pDataContainer == nullptr )
{
m_pDataContainer = new SvtSecurityOptions_Impl;
@@ -973,7 +973,7 @@ SvtSecurityOptions::~SvtSecurityOptions()
if( m_nRefCount <= 0 )
{
delete m_pDataContainer;
- m_pDataContainer = NULL;
+ m_pDataContainer = nullptr;
}
}