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 /forms | |
parent | 42dae96f97bfcc44d5e6ccf727e1cdb178123d56 (diff) |
split AddRemoveListener into two methods
Change-Id: I247dc8a9033b39d5e49dc06e725f638644fcd02d
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/richtext/clipboarddispatcher.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/forms/source/richtext/clipboarddispatcher.cxx b/forms/source/richtext/clipboarddispatcher.cxx index 00d5adeeeb9b..cb920ff76c1a 100644 --- a/forms/source/richtext/clipboarddispatcher.cxx +++ b/forms/source/richtext/clipboarddispatcher.cxx @@ -135,7 +135,7 @@ namespace frm { m_pClipListener = new TransferableClipboardListener( LINK( this, OPasteClipboardDispatcher, OnClipboardChanged ) ); m_pClipListener->acquire(); - m_pClipListener->AddRemoveListener( _rView.GetWindow(), true ); + m_pClipListener->AddListener( _rView.GetWindow() ); // initial state TransferableDataHelper aDataHelper( TransferableDataHelper::CreateFromSystemClipboard( _rView.GetWindow() ) ); @@ -169,7 +169,7 @@ namespace frm if (m_pClipListener) { if (getEditView() && getEditView()->GetWindow()) - m_pClipListener->AddRemoveListener( getEditView()->GetWindow(), false ); + m_pClipListener->RemoveListener( getEditView()->GetWindow() ); m_pClipListener->release(); m_pClipListener = nullptr; |