diff options
author | Noel Grandin <noel@peralex.com> | 2016-06-08 10:08:01 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-06-08 10:20:58 +0200 |
commit | 4cad126dc11a4798d5554da55b94ef51e0b0e21d (patch) | |
tree | a847f43191343947aaec2211a48f71ee89a2abd3 /dbaccess | |
parent | 42dae96f97bfcc44d5e6ccf727e1cdb178123d56 (diff) |
split AddRemoveListener into two methods
Change-Id: I247dc8a9033b39d5e49dc06e725f638644fcd02d
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/app/AppController.cxx | 4 | ||||
-rw-r--r-- | dbaccess/source/ui/browser/brwctrlr.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/dbaccess/source/ui/app/AppController.cxx b/dbaccess/source/ui/app/AppController.cxx index c3294b258094..a3cc1b33f328 100644 --- a/dbaccess/source/ui/app/AppController.cxx +++ b/dbaccess/source/ui/app/AppController.cxx @@ -342,7 +342,7 @@ void SAL_CALL OApplicationController::disposing() { getContainer()->showPreview(nullptr); m_pClipbordNotifier->ClearCallbackLink(); - m_pClipbordNotifier->AddRemoveListener( getView(), false ); + m_pClipbordNotifier->RemoveListener( getView() ); m_pClipbordNotifier->release(); m_pClipbordNotifier = nullptr; } @@ -448,7 +448,7 @@ bool OApplicationController::Construct(vcl::Window* _pParent) m_pClipbordNotifier = new TransferableClipboardListener( LINK( this, OApplicationController, OnClipboardChanged ) ); m_pClipbordNotifier->acquire(); - m_pClipbordNotifier->AddRemoveListener( getView(), true ); + m_pClipbordNotifier->AddListener( getView() ); OGenericUnoController::Construct( _pParent ); getView()->Show(); diff --git a/dbaccess/source/ui/browser/brwctrlr.cxx b/dbaccess/source/ui/browser/brwctrlr.cxx index 358899755b87..5dd5e6ae5c08 100644 --- a/dbaccess/source/ui/browser/brwctrlr.cxx +++ b/dbaccess/source/ui/browser/brwctrlr.cxx @@ -786,7 +786,7 @@ bool SbaXDataBrowserController::Construct(vcl::Window* pParent) m_pClipbordNotifier = new TransferableClipboardListener( LINK( this, SbaXDataBrowserController, OnClipboardChanged ) ); m_pClipbordNotifier->acquire(); - m_pClipbordNotifier->AddRemoveListener( getView(), true ); + m_pClipbordNotifier->AddListener( getView() ); // this call create the toolbox SbaXDataBrowserController_Base::Construct(pParent); @@ -1197,7 +1197,7 @@ void SbaXDataBrowserController::disposing() if ( getView() && m_pClipbordNotifier ) { m_pClipbordNotifier->ClearCallbackLink(); - m_pClipbordNotifier->AddRemoveListener( getView(), false ); + m_pClipbordNotifier->RemoveListener( getView() ); m_pClipbordNotifier->release(); m_pClipbordNotifier = nullptr; } |