diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:24:24 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:41 +0100 |
commit | 374b4f349f1d1cb3b33004580ebc903d206f28ff (patch) | |
tree | b26a69ad1287dc10f691cbb01504a0ba671dc591 /starmath/source/cfgitem.cxx | |
parent | e246e5e3cf2722beb8a633259c0c395b498f58c6 (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: Ife1eef04d905f12308b64b971176c2f045a1b268
Diffstat (limited to 'starmath/source/cfgitem.cxx')
-rw-r--r-- | starmath/source/cfgitem.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/starmath/source/cfgitem.cxx b/starmath/source/cfgitem.cxx index 2272437cd698..858479d6cd1f 100644 --- a/starmath/source/cfgitem.cxx +++ b/starmath/source/cfgitem.cxx @@ -249,7 +249,7 @@ void SmFontFormatList::RemoveFontFormat( const OUString &rFntFmtId ) const SmFontFormat * SmFontFormatList::GetFontFormat( const OUString &rFntFmtId ) const { - const SmFontFormat *pRes = 0; + const SmFontFormat *pRes = nullptr; for (size_t i = 0; i < aEntries.size(); ++i) { @@ -267,7 +267,7 @@ const SmFontFormat * SmFontFormatList::GetFontFormat( const OUString &rFntFmtId const SmFontFormat * SmFontFormatList::GetFontFormat( size_t nPos ) const { - const SmFontFormat *pRes = 0; + const SmFontFormat *pRes = nullptr; if (nPos < aEntries.size()) pRes = &aEntries[nPos].aFntFmt; return pRes; @@ -586,7 +586,7 @@ void SmMathConfig::LoadFontFormatList() ReadFontFormat( aFntFmt, pNode[i], FONT_FORMAT_LIST ); if (!pFontFormatList->GetFontFormat( pNode[i] )) { - OSL_ENSURE( 0 == pFontFormatList->GetFontFormat( pNode[i] ), + OSL_ENSURE( nullptr == pFontFormatList->GetFontFormat( pNode[i] ), "FontFormat ID already exists" ); pFontFormatList->AddFontFormat( pNode[i], aFntFmt ); } @@ -1144,7 +1144,7 @@ void SmMathConfig::Notify( const css::uno::Sequence< OUString >& ) void SmMathConfig::ItemSetToConfig(const SfxItemSet &rSet) { - const SfxPoolItem *pItem = NULL; + const SfxPoolItem *pItem = nullptr; sal_uInt16 nU16; bool bVal; |