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/source/ui/view/outlnvsh.cxx | |
parent | 42dae96f97bfcc44d5e6ccf727e1cdb178123d56 (diff) |
split AddRemoveListener into two methods
Change-Id: I247dc8a9033b39d5e49dc06e725f638644fcd02d
Diffstat (limited to 'sd/source/ui/view/outlnvsh.cxx')
-rw-r--r-- | sd/source/ui/view/outlnvsh.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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() ) ); |