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 /sd | |
parent | 42dae96f97bfcc44d5e6ccf727e1cdb178123d56 (diff) |
split AddRemoveListener into two methods
Change-Id: I247dc8a9033b39d5e49dc06e725f638644fcd02d
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/view/drviews7.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/view/drviewsa.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/view/outlnvsh.cxx | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/view/drviews7.cxx b/sd/source/ui/view/drviews7.cxx index 5f322592be8b..58693504eedd 100644 --- a/sd/source/ui/view/drviews7.cxx +++ b/sd/source/ui/view/drviews7.cxx @@ -613,7 +613,7 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet ) { // create listener mxClipEvtLstnr = new TransferableClipboardListener( LINK( this, DrawViewShell, ClipboardChanged ) ); - mxClipEvtLstnr->AddRemoveListener( GetActiveWindow(), true ); + mxClipEvtLstnr->AddListener( GetActiveWindow() ); // get initial state TransferableDataHelper aDataHelper( TransferableDataHelper::CreateFromSystemClipboard( GetActiveWindow() ) ); diff --git a/sd/source/ui/view/drviewsa.cxx b/sd/source/ui/view/drviewsa.cxx index 561ca6f899df..2e79b863fc3b 100644 --- a/sd/source/ui/view/drviewsa.cxx +++ b/sd/source/ui/view/drviewsa.cxx @@ -179,7 +179,7 @@ DrawViewShell::~DrawViewShell() if ( mxClipEvtLstnr.is() ) { - mxClipEvtLstnr->AddRemoveListener( GetActiveWindow(), false ); + mxClipEvtLstnr->RemoveListener( GetActiveWindow() ); mxClipEvtLstnr->ClearCallbackLink(); // prevent callback if another thread is waiting mxClipEvtLstnr.clear(); } diff --git a/sd/source/ui/view/outlnvsh.cxx b/sd/source/ui/view/outlnvsh.cxx index f0708bec378d..44fe29aaa974 100644 --- a/sd/source/ui/view/outlnvsh.cxx +++ b/sd/source/ui/view/outlnvsh.cxx @@ -220,7 +220,7 @@ OutlineViewShell::~OutlineViewShell() if ( mxClipEvtLstnr.is() ) { - mxClipEvtLstnr->AddRemoveListener( GetActiveWindow(), false ); + mxClipEvtLstnr->RemoveListener( GetActiveWindow() ); mxClipEvtLstnr->ClearCallbackLink(); // prevent callback if another thread is waiting } } @@ -883,7 +883,7 @@ void OutlineViewShell::GetMenuState( SfxItemSet &rSet ) { // create listener mxClipEvtLstnr = new TransferableClipboardListener( LINK( this, OutlineViewShell, ClipboardChanged ) ); - mxClipEvtLstnr->AddRemoveListener( GetActiveWindow(), true ); + mxClipEvtLstnr->AddListener( GetActiveWindow() ); // get initial state TransferableDataHelper aDataHelper( TransferableDataHelper::CreateFromSystemClipboard( GetActiveWindow() ) ); |