From b95427196e87e7bc1143674ef7cb9b1eeacb7f72 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sun, 3 May 2015 20:57:42 +0200 Subject: Use typed TabControl::SetDeactivatePageHdl Link Change-Id: I487aad5217cb685ece971717445a68b4fb3d2b3a --- extensions/source/propctrlr/propertyeditor.cxx | 6 +++--- extensions/source/propctrlr/propertyeditor.hxx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'extensions') diff --git a/extensions/source/propctrlr/propertyeditor.cxx b/extensions/source/propctrlr/propertyeditor.cxx index daa9e8c965f6..73d8389a6b9d 100644 --- a/extensions/source/propctrlr/propertyeditor.cxx +++ b/extensions/source/propctrlr/propertyeditor.cxx @@ -516,19 +516,19 @@ namespace pcr } - IMPL_LINK_NOARG(OPropertyEditor, OnPageDeactivate) + IMPL_LINK_NOARG_TYPED(OPropertyEditor, OnPageDeactivate, TabControl *, bool) { // commit the data on the current (to-be-decativated) tab page // (79404) sal_Int32 nCurrentId = m_aTabControl->GetCurPageId(); OBrowserPage* pCurrentPage = static_cast(m_aTabControl->GetTabPage((sal_uInt16)nCurrentId)); if ( !pCurrentPage ) - return 1L; + return true; if ( pCurrentPage->getListBox().IsModified() ) pCurrentPage->getListBox().CommitModified(); - return 1L; + return true; } diff --git a/extensions/source/propctrlr/propertyeditor.hxx b/extensions/source/propctrlr/propertyeditor.hxx index cd519b8c2ff2..6fe279ba32b4 100644 --- a/extensions/source/propctrlr/propertyeditor.hxx +++ b/extensions/source/propctrlr/propertyeditor.hxx @@ -139,7 +139,7 @@ namespace pcr void setHelpLineLimits( OBrowserPage& _rPage, const void* ); protected: - DECL_LINK(OnPageDeactivate, void *); + DECL_LINK_TYPED(OnPageDeactivate, TabControl *, bool); DECL_LINK(OnPageActivate, void *); }; -- cgit