diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:15:51 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:26 +0100 |
commit | e5b721a14c1c8e5261a70588b30353cbb5bd55c6 (patch) | |
tree | 4363d47845ddc271a032a5f18e402ddbe001891b /formula/source/ui/dlg/structpg.cxx | |
parent | 11d365241808405483b79efd7879fa04bee8945e (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: Ib336ce9bc95f5c84dd6412ff3c098e68c5b0f4ff
Diffstat (limited to 'formula/source/ui/dlg/structpg.cxx')
-rw-r--r-- | formula/source/ui/dlg/structpg.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/formula/source/ui/dlg/structpg.cxx b/formula/source/ui/dlg/structpg.cxx index fcbf0e6b3834..11d562722321 100644 --- a/formula/source/ui/dlg/structpg.cxx +++ b/formula/source/ui/dlg/structpg.cxx @@ -84,7 +84,7 @@ StructPage::StructPage(vcl::Window* pParent): TabPage(pParent, "StructPage", "formula/ui/structpage.ui"), maImgEnd ( ModuleRes( BMP_STR_END ) ), maImgError ( ModuleRes( BMP_STR_ERROR ) ), - pSelectedToken ( NULL ) + pSelectedToken ( nullptr ) { get(m_pTlbStruct, "struct"); Size aSize(LogicToPixel(Size(86, 162), MAP_APPFONT)); @@ -123,7 +123,7 @@ SvTreeListEntry* StructPage::InsertEntry( const OUString& rText, SvTreeListEntry { m_pTlbStruct->SetActiveFlag( false ); - SvTreeListEntry* pEntry = NULL; + SvTreeListEntry* pEntry = nullptr; switch( nFlag ) { case STRUCT_FOLDER: @@ -145,17 +145,17 @@ SvTreeListEntry* StructPage::InsertEntry( const OUString& rText, SvTreeListEntry OUString StructPage::GetEntryText(SvTreeListEntry* pEntry) const { OUString aString; - if(pEntry!=NULL) + if(pEntry!=nullptr) aString = m_pTlbStruct->GetEntryText(pEntry); return aString; } IFormulaToken* StructPage::GetFunctionEntry(SvTreeListEntry* pEntry) { - if(pEntry!=NULL) + if(pEntry!=nullptr) { IFormulaToken * pToken=static_cast<IFormulaToken *>(pEntry->GetUserData()); - if(pToken!=NULL) + if(pToken!=nullptr) { if ( !(pToken->isFunction() || pToken->getArgumentCount() > 1 ) ) { @@ -167,7 +167,7 @@ IFormulaToken* StructPage::GetFunctionEntry(SvTreeListEntry* pEntry) } } } - return NULL; + return nullptr; } IMPL_LINK_TYPED( StructPage, SelectHdl, SvTreeListBox*, pTlb, void ) @@ -177,10 +177,10 @@ IMPL_LINK_TYPED( StructPage, SelectHdl, SvTreeListBox*, pTlb, void ) if(pTlb==m_pTlbStruct) { SvTreeListEntry* pCurEntry=m_pTlbStruct->GetCurEntry(); - if(pCurEntry!=NULL) + if(pCurEntry!=nullptr) { pSelectedToken=static_cast<IFormulaToken *>(pCurEntry->GetUserData()); - if(pSelectedToken!=NULL) + if(pSelectedToken!=nullptr) { if ( !(pSelectedToken->isFunction() || pSelectedToken->getArgumentCount() > 1) ) { |