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 /reportdesign | |
parent | 42dae96f97bfcc44d5e6ccf727e1cdb178123d56 (diff) |
split AddRemoveListener into two methods
Change-Id: I247dc8a9033b39d5e49dc06e725f638644fcd02d
Diffstat (limited to 'reportdesign')
-rw-r--r-- | reportdesign/source/ui/report/ReportController.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/reportdesign/source/ui/report/ReportController.cxx b/reportdesign/source/ui/report/ReportController.cxx index 63bd2b597833..94c67dedfc34 100644 --- a/reportdesign/source/ui/report/ReportController.cxx +++ b/reportdesign/source/ui/report/ReportController.cxx @@ -315,7 +315,7 @@ void OReportController::disposing() if ( m_pClipboardNotifier.is() ) { m_pClipboardNotifier->ClearCallbackLink(); - m_pClipboardNotifier->AddRemoveListener( getView(), false ); + m_pClipboardNotifier->RemoveListener( getView() ); m_pClipboardNotifier.clear(); } if ( m_pGroupsFloater ) @@ -1766,7 +1766,7 @@ bool OReportController::Construct(vcl::Window* pParent) m_aSystemClipboard = TransferableDataHelper::CreateFromSystemClipboard( getView() ); m_aSystemClipboard.StartClipboardListening( ); m_pClipboardNotifier = new TransferableClipboardListener( LINK( this, OReportController, OnClipboardChanged ) ); - m_pClipboardNotifier->AddRemoveListener( getView(), true ); + m_pClipboardNotifier->AddListener( getView() ); OReportController_BASE::Construct(pParent); return true; |