diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-02-23 12:38:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-23 13:33:33 +0100 |
commit | e7f82300b9a6317ecca2a338234cc27c12b5cb2b (patch) | |
tree | 9340f70931545b2d53ba474ed5e82d5a7eaa3222 /sd | |
parent | c9dda083b401516500afff024ce3f663292db341 (diff) |
loplugin:unusedfields
Change-Id: Ieb1b890040964e755de5bdf5f8576d4d3bd8a407
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111386
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/annotations/annotationtag.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/annotations/annotationwindow.cxx | 5 | ||||
-rw-r--r-- | sd/source/ui/annotations/annotationwindow.hxx | 6 |
3 files changed, 3 insertions, 10 deletions
diff --git a/sd/source/ui/annotations/annotationtag.cxx b/sd/source/ui/annotations/annotationtag.cxx index 09ddc22ce0be..9da90e2e2b57 100644 --- a/sd/source/ui/annotations/annotationtag.cxx +++ b/sd/source/ui/annotations/annotationtag.cxx @@ -585,7 +585,7 @@ void AnnotationTag::OpenPopup( bool bEdit ) ::tools::Rectangle aRect( aPos, maSize ); - mpAnnotationWindow.reset( VclPtr<AnnotationWindow>::Create( mrManager, mrView.GetDocSh(), pWindow->GetWindow(GetWindowType::Frame) ) ); + mpAnnotationWindow.reset( VclPtr<AnnotationWindow>::Create( mrView.GetDocSh(), pWindow->GetWindow(GetWindowType::Frame) ) ); AnnotationContents& rAnnotation = mpAnnotationWindow->GetContents(); rAnnotation.InitControls(); rAnnotation.setAnnotation(mxAnnotation); diff --git a/sd/source/ui/annotations/annotationwindow.cxx b/sd/source/ui/annotations/annotationwindow.cxx index d83e60f6f0ba..d7dd5b246098 100644 --- a/sd/source/ui/annotations/annotationwindow.cxx +++ b/sd/source/ui/annotations/annotationwindow.cxx @@ -149,11 +149,8 @@ bool AnnotationTextWindow::KeyInput(const KeyEvent& rKeyEvt) } /************** AnnotationWindow***********************************++*/ -AnnotationWindow::AnnotationWindow(AnnotationManagerImpl& rManager, DrawDocShell* pDocShell, vcl::Window* pParent) +AnnotationWindow::AnnotationWindow(DrawDocShell* pDocShell, vcl::Window* pParent) : FloatingWindow(pParent, WB_BORDER) - , mrManager( rManager ) - , mpDocShell( pDocShell ) - , mpDoc( pDocShell->GetDoc() ) , mxContents(VclPtr<AnnotationContents>::Create(this, pDocShell)) { EnableAlwaysOnTop(); diff --git a/sd/source/ui/annotations/annotationwindow.hxx b/sd/source/ui/annotations/annotationwindow.hxx index 79d3f73f6b91..f73b443cb555 100644 --- a/sd/source/ui/annotations/annotationwindow.hxx +++ b/sd/source/ui/annotations/annotationwindow.hxx @@ -134,14 +134,10 @@ public: class AnnotationWindow : public FloatingWindow { private: - AnnotationManagerImpl& mrManager; - DrawDocShell* mpDocShell; - SdDrawDocument* mpDoc; - VclPtr<AnnotationContents> mxContents; public: - AnnotationWindow( AnnotationManagerImpl& rManager, DrawDocShell* pDocShell, vcl::Window* pParent ); + AnnotationWindow( DrawDocShell* pDocShell, vcl::Window* pParent ); virtual ~AnnotationWindow() override; virtual void dispose() override; |