diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:10:36 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:17 +0100 |
commit | 08e49fa3377d8c4e7e5df7a32233fcd9763ee936 (patch) | |
tree | f06399e5a005a70612093f415bd02ea2d1ba719f /basic/source/classes/image.cxx | |
parent | a17cde058213f962b8de880de6f5b1e4f2061b37 (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: I1ec9a671fe3ac838feb36297915e3cdf8749d944
Diffstat (limited to 'basic/source/classes/image.cxx')
-rw-r--r-- | basic/source/classes/image.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/basic/source/classes/image.cxx b/basic/source/classes/image.cxx index 268fcd00eda5..a487e62ea9e8 100644 --- a/basic/source/classes/image.cxx +++ b/basic/source/classes/image.cxx @@ -29,10 +29,10 @@ SbiImage::SbiImage() { - pStringOff = NULL; - pStrings = NULL; - pCode = NULL; - pLegacyPCode = NULL; + pStringOff = nullptr; + pStrings = nullptr; + pCode = nullptr; + pLegacyPCode = nullptr; nFlags = SbiImageFlags::NONE; nStrings = 0; nStringSize= 0; @@ -58,9 +58,9 @@ void SbiImage::Clear() delete[] pStrings; delete[] pCode; ReleaseLegacyBuffer(); - pStringOff = NULL; - pStrings = NULL; - pCode = NULL; + pStringOff = nullptr; + pStrings = nullptr; + pCode = nullptr; nFlags = SbiImageFlags::NONE; nStrings = 0; nStringSize= 0; @@ -673,7 +673,7 @@ OUString SbiImage::GetString( short nId ) const const SbxObject* SbiImage::FindType (const OUString& aTypeName) const { - return rTypes.Is() ? static_cast<SbxObject*>(rTypes->Find(aTypeName,SbxCLASS_OBJECT)) : NULL; + return rTypes.Is() ? static_cast<SbxObject*>(rTypes->Find(aTypeName,SbxCLASS_OBJECT)) : nullptr; } sal_uInt16 SbiImage::CalcLegacyOffset( sal_Int32 nOffset ) @@ -689,7 +689,7 @@ sal_uInt32 SbiImage::CalcNewOffset( sal_Int16 nOffset ) void SbiImage::ReleaseLegacyBuffer() { delete[] pLegacyPCode; - pLegacyPCode = NULL; + pLegacyPCode = nullptr; nLegacyCodeSize = 0; } |