diff options
author | Noel Grandin <noel@peralex.com> | 2016-06-28 10:02:06 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-06-28 10:09:27 +0200 |
commit | 4ae3f434ad3006285f1766c187f9e7a99edc170b (patch) | |
tree | 3f37d40035be5ee30c7d03da714493dc7d597d2a /sfx2/source | |
parent | c4e0d6596da5ef2aa040b9974aac987c6a93bb6d (diff) |
loplugin:refcounting on NotebookBar
extending two different ref-counted base classes is a no-no
Change-Id: Iabbf98c0cba73a1b1643b4275d15af7608b2e827
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/notebookbar/SfxNotebookBar.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/notebookbar/SfxNotebookBar.cxx b/sfx2/source/notebookbar/SfxNotebookBar.cxx index 8652df76c1dc..c68b486d3ff1 100644 --- a/sfx2/source/notebookbar/SfxNotebookBar.cxx +++ b/sfx2/source/notebookbar/SfxNotebookBar.cxx @@ -73,7 +73,7 @@ void SfxNotebookBar::StateMethod(SystemWindow* pSysWindow, if(xFrame.is() && xMultiplexer.is()) { xMultiplexer->addContextChangeEventListener( - pSysWindow->GetNotebookBar().get(), + pSysWindow->GetNotebookBar()->getContextChangeEventListener(), xFrame->getController()); } } @@ -91,7 +91,7 @@ void SfxNotebookBar::RemoveListeners(SystemWindow* pSysWindow) if (pSysWindow->GetNotebookBar() && xMultiplexer.is()) { xMultiplexer->removeAllContextChangeEventListeners( - pSysWindow->GetNotebookBar().get()); + pSysWindow->GetNotebookBar()->getContextChangeEventListener()); } } |