diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-05-03 20:57:42 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-05-04 17:54:51 +0200 |
commit | b95427196e87e7bc1143674ef7cb9b1eeacb7f72 (patch) | |
tree | f288318535f42f38eb9d19c11b0e160df97717ab /extensions | |
parent | 468e60717ff3de76051b2e6568ef101a16ca8721 (diff) |
Use typed TabControl::SetDeactivatePageHdl Link
Change-Id: I487aad5217cb685ece971717445a68b4fb3d2b3a
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/propctrlr/propertyeditor.cxx | 6 | ||||
-rw-r--r-- | extensions/source/propctrlr/propertyeditor.hxx | 2 |
2 files changed, 4 insertions, 4 deletions
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<OBrowserPage*>(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 *); }; |