summaryrefslogtreecommitdiff
path: root/stoc/source/implementationregistration/implreg.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:24:34 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:43 +0100
commitda95f17cb69fe9eb18be44aaac9f71a68445e91c (patch)
tree6e46ab7b819efc6107b8acaf33e86f881992c2c9 /stoc/source/implementationregistration/implreg.cxx
parent374b4f349f1d1cb3b33004580ebc903d206f28ff (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: I162b47199e959f97c3bed1f307225db944017e4f
Diffstat (limited to 'stoc/source/implementationregistration/implreg.cxx')
-rw-r--r--stoc/source/implementationregistration/implreg.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/stoc/source/implementationregistration/implreg.cxx b/stoc/source/implementationregistration/implreg.cxx
index dc1a17a0da70..08bf4a8fafcb 100644
--- a/stoc/source/implementationregistration/implreg.cxx
+++ b/stoc/source/implementationregistration/implreg.cxx
@@ -95,7 +95,7 @@ struct StringPool: private boost::noncopyable
const StringPool &spool()
{
- static StringPool *pPool = 0;
+ static StringPool *pPool = nullptr;
if( ! pPool )
{
MutexGuard guard( Mutex::getGlobalMutex() );
@@ -129,8 +129,8 @@ static void deleteAllLinkReferences(const Reference < XSimpleRegistry >& xReg,
OUString aLinkName;
OUString aLinkParent;
Reference < XRegistryKey > xLinkParent;
- const sal_Unicode* pTmpName = NULL;
- const sal_Unicode* pShortName = NULL;
+ const sal_Unicode* pTmpName = nullptr;
+ const sal_Unicode* pShortName = nullptr;
sal_Int32 sEnd = 0;
for (sal_Int32 i = 0; i < linkNames.getLength(); i++)
@@ -144,7 +144,7 @@ static void deleteAllLinkReferences(const Reference < XSimpleRegistry >& xReg,
sal_Int32 nIndex = rtl_ustr_indexOfChar( pTmpName, '%' );
if ( nIndex == -1 )
- pShortName = 0;
+ pShortName = nullptr;
else
pShortName = pTmpName+nIndex;
@@ -152,7 +152,7 @@ static void deleteAllLinkReferences(const Reference < XSimpleRegistry >& xReg,
{
nIndex = rtl_ustr_indexOfChar( pShortName+2, '%' );
if ( nIndex == -1 )
- pShortName = 0;
+ pShortName = nullptr;
else
pShortName += nIndex+2;
}
@@ -207,7 +207,7 @@ static void prepareLink( const Reference < XSimpleRegistry > & xDest,
const sal_Unicode* pShortName;
sal_Int32 nIndex = rtl_ustr_indexOfChar( pTmpName, '%' );
if ( nIndex == -1 )
- pShortName = 0;
+ pShortName = nullptr;
else
pShortName = pTmpName+nIndex;
@@ -218,7 +218,7 @@ static void prepareLink( const Reference < XSimpleRegistry > & xDest,
{
nIndex = rtl_ustr_indexOfChar( pShortName+2, '%' );
if ( nIndex == -1 )
- pShortName = 0;
+ pShortName = nullptr;
else
pShortName += nIndex+2;
}