diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-03-30 09:53:37 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-03-30 16:37:59 +0200 |
commit | 42705f6b5e7bcf7b6d46a73cd931d17999d4890b (patch) | |
tree | 778e73d52dcfd40c2a5981270f26351ebc1ee0b7 /sw/source/ui/fldui | |
parent | 7d87349bde54febf25ce6b3a19e13ab545913250 (diff) |
Do not use accessors for private variables
Change-Id: Ia3fc7078a0e0ba2f84b7e0fd94011d6851ccff73
Diffstat (limited to 'sw/source/ui/fldui')
-rw-r--r-- | sw/source/ui/fldui/fldref.cxx | 18 | ||||
-rw-r--r-- | sw/source/ui/fldui/fldref.hxx | 2 |
2 files changed, 4 insertions, 16 deletions
diff --git a/sw/source/ui/fldui/fldref.cxx b/sw/source/ui/fldui/fldref.cxx index b7a38fffb989..01bff164a395 100644 --- a/sw/source/ui/fldui/fldref.cxx +++ b/sw/source/ui/fldui/fldref.cxx @@ -142,16 +142,6 @@ void SwFldRefPage::SaveSelectedTxtNode() } } -const SwTxtNode* SwFldRefPage::GetSavedSelectedTxtNode() const -{ - return mpSavedSelectedTxtNode; -} - -sal_Int32 SwFldRefPage::GetSavedSelectedPos() const -{ - return mnSavedSelectedPos; -} - void SwFldRefPage::Reset(const SfxItemSet& ) { if (!IsFldEdit()) @@ -545,14 +535,14 @@ void SwFldRefPage::UpdateSubType() pEntry->SetUserData( reinterpret_cast<void*>(nOutlIdx) ); if ( ( IsFldEdit() && pRefFld->GetReferencedTxtNode() == maOutlineNodes[nOutlIdx] ) || - GetSavedSelectedTxtNode() == maOutlineNodes[nOutlIdx] ) + mpSavedSelectedTxtNode == maOutlineNodes[nOutlIdx] ) { m_pSelectionToolTipLB->Select( pEntry ); sOldSel = ""; bCertainTxtNodeSelected = true; } else if ( !bCertainTxtNodeSelected && - GetSavedSelectedPos() == nOutlIdx ) + mnSavedSelectedPos == nOutlIdx ) { m_pSelectionToolTipLB->Select( pEntry ); sOldSel = ""; @@ -575,14 +565,14 @@ void SwFldRefPage::UpdateSubType() pEntry->SetUserData( reinterpret_cast<void*>(nNumItemIdx) ); if ( ( IsFldEdit() && pRefFld->GetReferencedTxtNode() == maNumItems[nNumItemIdx]->GetTxtNode() ) || - GetSavedSelectedTxtNode() == maNumItems[nNumItemIdx]->GetTxtNode() ) + mpSavedSelectedTxtNode == maNumItems[nNumItemIdx]->GetTxtNode() ) { m_pSelectionToolTipLB->Select( pEntry ); sOldSel = ""; bCertainTxtNodeSelected = true; } else if ( !bCertainTxtNodeSelected && - GetSavedSelectedPos() == nNumItemIdx ) + mnSavedSelectedPos == nNumItemIdx ) { m_pSelectionToolTipLB->Select( pEntry ); sOldSel = ""; diff --git a/sw/source/ui/fldui/fldref.hxx b/sw/source/ui/fldui/fldref.hxx index 7f7e8f90d46b..7d78d40f5383 100644 --- a/sw/source/ui/fldui/fldref.hxx +++ b/sw/source/ui/fldui/fldref.hxx @@ -70,8 +70,6 @@ class SwFldRefPage : public SwFldPage // #i83479# void SaveSelectedTxtNode(); - const SwTxtNode* GetSavedSelectedTxtNode() const; - sal_Int32 GetSavedSelectedPos() const; protected: virtual sal_uInt16 GetGroup() SAL_OVERRIDE; |