summaryrefslogtreecommitdiff
path: root/sd/source/ui
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-05-10 13:39:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-05-11 09:47:38 +0200
commit1ae25f489575c349d9860caa1336cdbd74a5a01a (patch)
treea97f8f544f1130b69f44554c9438a8f9af3e756e /sd/source/ui
parentc26351ee513afe0557a6ea51a9072714e8a0434f (diff)
loplugin:datamembershadow in SdrOutliner
and make the superclass field private too Change-Id: Ibfe030859d2d81b1cb5b7f47c1292210b16ae42c Reviewed-on: https://gerrit.libreoffice.org/54108 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui')
-rw-r--r--sd/source/ui/view/Outliner.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/sd/source/ui/view/Outliner.cxx b/sd/source/ui/view/Outliner.cxx
index 7c8f6a0ce7e4..1628d1c25693 100644
--- a/sd/source/ui/view/Outliner.cxx
+++ b/sd/source/ui/view/Outliner.cxx
@@ -156,7 +156,7 @@ SdOutliner::SdOutliner( SdDrawDocument* pDoc, OutlinerMode nMode )
maMarkListCopy(),
mpObj(nullptr),
mpFirstObj(nullptr),
- mpTextObj(nullptr),
+ mpSearchSpellTextObj(nullptr),
mnText(0),
mpParaObj(nullptr),
meStartViewMode(PageKind::Standard),
@@ -1069,7 +1069,7 @@ void SdOutliner::ProvideNextTextObject()
SetPaperSize( Size(1, 1) );
SetText(OUString(), GetParagraph(0));
- mpTextObj = nullptr;
+ mpSearchSpellTextObj = nullptr;
// Iterate until a valid text object has been found or the search ends.
do
@@ -1260,10 +1260,10 @@ bool SdOutliner::IsValidTextObject (const sd::outliner::IteratorPosition& rPosit
void SdOutliner::PutTextIntoOutliner()
{
- mpTextObj = dynamic_cast<SdrTextObj*>( mpObj );
- if ( mpTextObj && mpTextObj->HasText() && !mpTextObj->IsEmptyPresObj() )
+ mpSearchSpellTextObj = dynamic_cast<SdrTextObj*>( mpObj );
+ if ( mpSearchSpellTextObj && mpSearchSpellTextObj->HasText() && !mpSearchSpellTextObj->IsEmptyPresObj() )
{
- SdrText* pText = mpTextObj->getText( maCurrentPosition.mnText );
+ SdrText* pText = mpSearchSpellTextObj->getText( maCurrentPosition.mnText );
mpParaObj = pText ? pText->GetOutlinerParaObject() : nullptr;
if (mpParaObj != nullptr)
@@ -1275,7 +1275,7 @@ void SdOutliner::PutTextIntoOutliner()
}
else
{
- mpTextObj = nullptr;
+ mpSearchSpellTextObj = nullptr;
}
}
@@ -1408,10 +1408,10 @@ void SdOutliner::SetPage (EditMode eEditMode, sal_uInt16 nPageIndex)
void SdOutliner::EnterEditMode (bool bGrabFocus)
{
OutlinerView* pOutlinerView = mpImpl->GetOutlinerView();
- if (pOutlinerView && mpTextObj)
+ if (pOutlinerView && mpSearchSpellTextObj)
{
pOutlinerView->SetOutputArea( ::tools::Rectangle( Point(), Size(1, 1)));
- SetPaperSize( mpTextObj->GetLogicRect().GetSize() );
+ SetPaperSize( mpSearchSpellTextObj->GetLogicRect().GetSize() );
SdrPageView* pPV = mpView->GetSdrPageView();
// Make FuText the current function.
@@ -1425,12 +1425,12 @@ void SdOutliner::EnterEditMode (bool bGrabFocus)
// Starting the text edit mode is not enough so we do it here by
// hand.
mpView->UnmarkAllObj (pPV);
- mpView->MarkObj (mpTextObj, pPV);
+ mpView->MarkObj (mpSearchSpellTextObj, pPV);
- mpTextObj->setActiveText( mnText );
+ mpSearchSpellTextObj->setActiveText( mnText );
// Turn on the edit mode for the text object.
- mpView->SdrBeginTextEdit(mpTextObj, pPV, mpWindow, true, this, pOutlinerView, true, true, bGrabFocus);
+ mpView->SdrBeginTextEdit(mpSearchSpellTextObj, pPV, mpWindow, true, this, pOutlinerView, true, true, bGrabFocus);
SetUpdateMode(true);
mbFoundObject = true;