summaryrefslogtreecommitdiff
path: root/xmloff/source/style/xmlstyle.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:29:15 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:32:01 +0100
commit51b45df6bba163dec7ba91c700de695ad517e5dd (patch)
tree566633496f4048112c75edbbe250b0f01d86a8dd /xmloff/source/style/xmlstyle.cxx
parent87bae0e188aa3ce3c31d1aa91707c0fad6b81b65 (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: I8690de2cb68dcfedc9f2239ce66cea06fd94bc16
Diffstat (limited to 'xmloff/source/style/xmlstyle.cxx')
-rw-r--r--xmloff/source/style/xmlstyle.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/xmloff/source/style/xmlstyle.cxx b/xmloff/source/style/xmlstyle.cxx
index 2e2dcdbff01f..e7b17eca94bd 100644
--- a/xmloff/source/style/xmlstyle.cxx
+++ b/xmloff/source/style/xmlstyle.cxx
@@ -213,7 +213,7 @@ public:
SvXMLStyleIndex_Impl( sal_uInt16 nFam, const OUString& rName ) :
sName( rName ),
nFamily( nFam ),
- pStyle ( 0 )
+ pStyle ( nullptr )
{
}
@@ -259,7 +259,7 @@ class SvXMLStylesContext_Impl
mutable sal_uInt32 m_nIndexCreated;
#endif
- void FlushIndex() { delete pIndices; pIndices = 0; }
+ void FlushIndex() { delete pIndices; pIndices = nullptr; }
public:
explicit SvXMLStylesContext_Impl( bool bAuto );
@@ -269,7 +269,7 @@ public:
SvXMLStyleContext *GetStyle( size_t i )
{
- return i < aStyles.size() ? aStyles[ i ] : 0;
+ return i < aStyles.size() ? aStyles[ i ] : nullptr;
}
inline void AddStyle( SvXMLStyleContext *pStyle );
@@ -282,7 +282,7 @@ public:
};
SvXMLStylesContext_Impl::SvXMLStylesContext_Impl( bool bAuto ) :
- pIndices( 0 ),
+ pIndices( nullptr ),
bAutomaticStyle( bAuto )
#if OSL_DEBUG_LEVEL > 0
, m_nIndexCreated( 0 )
@@ -325,7 +325,7 @@ const SvXMLStyleContext *SvXMLStylesContext_Impl::FindStyleChildContext( sal_uIn
const OUString& rName,
bool bCreateIndex ) const
{
- const SvXMLStyleContext *pStyle = 0;
+ const SvXMLStyleContext *pStyle = nullptr;
if( !pIndices && bCreateIndex && !aStyles.empty() )
{
@@ -384,7 +384,7 @@ SvXMLStyleContext *SvXMLStylesContext::CreateStyleChildContext( sal_uInt16 p_nPr
const OUString& rLocalName,
const uno::Reference< xml::sax::XAttributeList > & xAttrList )
{
- SvXMLStyleContext *pStyle = NULL;
+ SvXMLStyleContext *pStyle = nullptr;
if(GetImport().GetDataStylesImport())
{
@@ -502,7 +502,7 @@ SvXMLStyleContext *SvXMLStylesContext::CreateStyleStyleChildContext(
sal_uInt16 nFamily, sal_uInt16 nPrefix, const OUString& rLocalName,
const uno::Reference< xml::sax::XAttributeList > & xAttrList )
{
- SvXMLStyleContext *pStyle = 0;
+ SvXMLStyleContext *pStyle = nullptr;
switch( nFamily )
{
@@ -536,7 +536,7 @@ SvXMLStyleContext *SvXMLStylesContext::CreateDefaultStyleStyleChildContext(
sal_uInt16 /*nFamily*/, sal_uInt16 /*nPrefix*/, const OUString& /*rLocalName*/,
const uno::Reference< xml::sax::XAttributeList > & )
{
- return 0;
+ return nullptr;
}
bool SvXMLStylesContext::InsertStyleFamily( sal_uInt16 ) const
@@ -782,7 +782,7 @@ SvXMLStylesContext::SvXMLStylesContext( SvXMLImport& rImport, sal_uInt16 nPrfx,
msParaStyleServiceName( "com.sun.star.style.ParagraphStyle" ),
msTextStyleServiceName( "com.sun.star.style.CharacterStyle" ),
mpImpl( new SvXMLStylesContext_Impl( bAuto ) ),
- mpStyleStylesElemTokenMap( 0 )
+ mpStyleStylesElemTokenMap( nullptr )
{
}
@@ -796,7 +796,7 @@ SvXMLImportContext *SvXMLStylesContext::CreateChildContext( sal_uInt16 nPrefix,
const OUString& rLocalName,
const uno::Reference< xml::sax::XAttributeList > & xAttrList )
{
- SvXMLImportContext *pContext = 0;
+ SvXMLImportContext *pContext = nullptr;
SvXMLStyleContext *pStyle =
CreateStyleChildContext( nPrefix, rLocalName, xAttrList );