diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-21 15:32:03 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-28 08:49:54 +0200 |
commit | 7b850c15b15be10ed3b52822f63b02d8787bcb2f (patch) | |
tree | d209ae49fb21c94c752f325e389862706abc207e /sc/source/ui/drawfunc/futext.cxx | |
parent | 84dfff475c1f25319bc22c7b6ad437d5501a7dc4 (diff) |
loplugin:unusedfields in sc part1
in ScNavigatorDlg::ScNavigatorDlg, we replace the assignment of nAreaId
with an assignment to nDataId instead, which is never initialized but
used, whereas nAreaId was initialized but never used.
Change-Id: I9681af7f7d515d4891c9b52d3809e88e3d5e8256
Reviewed-on: https://gerrit.libreoffice.org/39062
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/drawfunc/futext.cxx')
-rw-r--r-- | sc/source/ui/drawfunc/futext.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sc/source/ui/drawfunc/futext.cxx b/sc/source/ui/drawfunc/futext.cxx index 892e4a29ee4b..4d0a21a976ce 100644 --- a/sc/source/ui/drawfunc/futext.cxx +++ b/sc/source/ui/drawfunc/futext.cxx @@ -103,8 +103,7 @@ static void lcl_UpdateHyphenator( Outliner& rOutliner, SdrObject* pObj ) FuText::FuText(ScTabViewShell* pViewSh, vcl::Window* pWin, ScDrawView* pViewP, SdrModel* pDoc, SfxRequest& rReq) : - FuConstruct(pViewSh, pWin, pViewP, pDoc, rReq), - pTextObj(nullptr) + FuConstruct(pViewSh, pWin, pViewP, pDoc, rReq) { } @@ -566,8 +565,6 @@ void FuText::SetInEditMode(SdrObject* pObj, const Point* pMousePixel, } } - pTextObj = nullptr; - if ( pObj ) { sal_uInt16 nSdrObjKind = pObj->GetObjIdentifier(); @@ -606,7 +603,6 @@ void FuText::SetInEditMode(SdrObject* pObj, const Point* pMousePixel, // EditEngine-UndoManager anmelden pViewShell->SetDrawTextUndo( &pO->GetUndoManager() ); - pTextObj = static_cast<SdrTextObj*>(pObj); pView->SetEditMode(); // set text cursor to click position or to end, |