diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:25:28 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:50 +0100 |
commit | 6cd7bf2043146a630925a2e49336f02c802f707a (patch) | |
tree | 786cecd8ab993e25cda497d45b68007050c30d61 /svx/source/form/ParseContext.cxx | |
parent | 28f4bee7bd7378141d8569186162e1a3166eb012 (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: I71682f28c6a54d33da6b0c971f34d0a705ff04f5
Diffstat (limited to 'svx/source/form/ParseContext.cxx')
-rw-r--r-- | svx/source/form/ParseContext.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/form/ParseContext.cxx b/svx/source/form/ParseContext.cxx index 310ed7d18053..56e68c269f8e 100644 --- a/svx/source/form/ParseContext.cxx +++ b/svx/source/form/ParseContext.cxx @@ -161,9 +161,9 @@ namespace return s_nCounter; } - OSystemParseContext* getSharedContext(OSystemParseContext* _pContext = NULL,bool _bSet = false) + OSystemParseContext* getSharedContext(OSystemParseContext* _pContext = nullptr,bool _bSet = false) { - static OSystemParseContext* s_pSharedContext = NULL; + static OSystemParseContext* s_pSharedContext = nullptr; if ( _pContext && !s_pSharedContext ) { s_pSharedContext = _pContext; @@ -195,7 +195,7 @@ OParseContextClient::~OParseContextClient() { ::osl::MutexGuard aGuard( getSafteyMutex() ); if ( 0 == osl_atomic_decrement( &getCounter() ) ) - delete getSharedContext(NULL,true); + delete getSharedContext(nullptr,true); } } |