diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:29:15 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:32:01 +0100 |
commit | 51b45df6bba163dec7ba91c700de695ad517e5dd (patch) | |
tree | 566633496f4048112c75edbbe250b0f01d86a8dd /xmloff/source/script/XMLEventExport.cxx | |
parent | 87bae0e188aa3ce3c31d1aa91707c0fad6b81b65 (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: I8690de2cb68dcfedc9f2239ce66cea06fd94bc16
Diffstat (limited to 'xmloff/source/script/XMLEventExport.cxx')
-rw-r--r-- | xmloff/source/script/XMLEventExport.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xmloff/source/script/XMLEventExport.cxx b/xmloff/source/script/XMLEventExport.cxx index a27927c082af..f2b91227768c 100644 --- a/xmloff/source/script/XMLEventExport.cxx +++ b/xmloff/source/script/XMLEventExport.cxx @@ -68,8 +68,8 @@ XMLEventExport::~XMLEventExport() void XMLEventExport::AddHandler( const OUString& rName, XMLEventExportHandler* pHandler ) { - DBG_ASSERT(pHandler != NULL, "Need EventExportHandler"); - if (pHandler != NULL) + DBG_ASSERT(pHandler != nullptr, "Need EventExportHandler"); + if (pHandler != nullptr) { aHandlerMap[rName] = pHandler; } @@ -78,11 +78,11 @@ void XMLEventExport::AddHandler( const OUString& rName, void XMLEventExport::AddTranslationTable( const XMLEventNameTranslation* pTransTable ) { - if (NULL != pTransTable) + if (nullptr != pTransTable) { // put translation table into map for(const XMLEventNameTranslation* pTrans = pTransTable; - pTrans->sAPIName != NULL; + pTrans->sAPIName != nullptr; pTrans++) { aNameTranslationMap[OUString::createFromAscii(pTrans->sAPIName)] = @@ -346,7 +346,7 @@ const XMLEventNameTranslation aStandardEventTable[] = { "OnChange", XML_NAMESPACE_OFFICE, "content-changed" }, { "OnCalculate", XML_NAMESPACE_OFFICE, "calculated" }, - { NULL, 0, 0 } + { nullptr, 0, nullptr } }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |