diff options
author | Eike Rathke <erack@redhat.com> | 2017-07-10 14:38:13 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-07-10 14:58:00 +0200 |
commit | 7f787b4c70d8766d1e2fc54e8a8ba70c74e365bf (patch) | |
tree | 09b47ae1c7c38cf1a661b617936b4967ca5a63f3 /formula/source | |
parent | cdfe06b8fc08d9ff2e71b488611c647a1f01d758 (diff) |
Buy some spaces
Change-Id: I0edd454c03b0c3e502d4ef87db584a0cec2884be
Diffstat (limited to 'formula/source')
-rw-r--r-- | formula/source/ui/dlg/structpg.cxx | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/formula/source/ui/dlg/structpg.cxx b/formula/source/ui/dlg/structpg.cxx index dff340a1825e..c4345bb22208 100644 --- a/formula/source/ui/dlg/structpg.cxx +++ b/formula/source/ui/dlg/structpg.cxx @@ -36,7 +36,7 @@ namespace formula StructListBox::StructListBox(vcl::Window* pParent, WinBits nBits ): SvTreeListBox(pParent, nBits) { - bActiveFlag=false; + bActiveFlag = false; vcl::Font aFont( GetFont() ); Size aSize = aFont.GetFontSize(); @@ -57,25 +57,25 @@ SvTreeListEntry* StructListBox::InsertStaticEntry( void StructListBox::SetActiveFlag(bool bFlag) { - bActiveFlag=bFlag; + bActiveFlag = bFlag; } void StructListBox::MouseButtonDown( const MouseEvent& rMEvt ) { - bActiveFlag=true; + bActiveFlag = true; SvTreeListBox::MouseButtonDown(rMEvt); } void StructListBox::GetFocus() { - bActiveFlag=true; + bActiveFlag = true; SvTreeListBox::GetFocus(); } void StructListBox::LoseFocus() { - bActiveFlag=false; + bActiveFlag = false; SvTreeListBox::LoseFocus(); } @@ -139,7 +139,7 @@ SvTreeListEntry* StructPage::InsertEntry( const OUString& rText, SvTreeListEntry break; } - if( pEntry && pParent ) + if ( pEntry && pParent ) m_pTlbStruct->Expand( pParent ); return pEntry; } @@ -147,17 +147,17 @@ SvTreeListEntry* StructPage::InsertEntry( const OUString& rText, SvTreeListEntry OUString StructPage::GetEntryText(SvTreeListEntry* pEntry) const { OUString aString; - if(pEntry!=nullptr) + if (pEntry != nullptr) aString = m_pTlbStruct->GetEntryText(pEntry); return aString; } const IFormulaToken* StructPage::GetFunctionEntry(SvTreeListEntry* pEntry) { - if(pEntry!=nullptr) + if (pEntry != nullptr) { - const IFormulaToken * pToken=static_cast<const IFormulaToken *>(pEntry->GetUserData()); - if(pToken!=nullptr) + const IFormulaToken * pToken = static_cast<const IFormulaToken *>(pEntry->GetUserData()); + if (pToken != nullptr) { if ( !(pToken->isFunction() || pToken->getArgumentCount() > 1 ) ) { @@ -174,15 +174,15 @@ const IFormulaToken* StructPage::GetFunctionEntry(SvTreeListEntry* pEntry) IMPL_LINK( StructPage, SelectHdl, SvTreeListBox*, pTlb, void ) { - if(m_pTlbStruct->GetActiveFlag()) + if (m_pTlbStruct->GetActiveFlag()) { - if(pTlb==m_pTlbStruct) + if (pTlb == m_pTlbStruct) { - SvTreeListEntry* pCurEntry=m_pTlbStruct->GetCurEntry(); - if(pCurEntry!=nullptr) + SvTreeListEntry* pCurEntry = m_pTlbStruct->GetCurEntry(); + if (pCurEntry != nullptr) { - pSelectedToken=static_cast<const IFormulaToken *>(pCurEntry->GetUserData()); - if(pSelectedToken!=nullptr) + pSelectedToken = static_cast<const IFormulaToken *>(pCurEntry->GetUserData()); + if (pSelectedToken != nullptr) { if ( !(pSelectedToken->isFunction() || pSelectedToken->getArgumentCount() > 1) ) { |