diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-05-05 09:59:27 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-05-05 12:05:38 +0200 |
commit | c9b4c5681194a1cd3297a36d4a1f4e4cc3aac55a (patch) | |
tree | 2cb864a67b556f807ba175507296f7dfc5254944 /sfx2/source/doc/new.cxx | |
parent | 8c4a1663f5d93380268365d35a5581d8065df897 (diff) |
Use typed Idle::SetIdleHdl Link
Change-Id: I189937950325dc4ef663f7f49cb45f38f8537de9
Diffstat (limited to 'sfx2/source/doc/new.cxx')
-rw-r--r-- | sfx2/source/doc/new.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sfx2/source/doc/new.cxx b/sfx2/source/doc/new.cxx index 78884e561804..618602e2de9b 100644 --- a/sfx2/source/doc/new.cxx +++ b/sfx2/source/doc/new.cxx @@ -145,7 +145,7 @@ class SfxNewFileDialog_Impl SfxObjectShellLock xDocShell; VclPtr<SfxNewFileDialog> pAntiImpl; - DECL_LINK( Update, void * ); + DECL_LINK_TYPED( Update, Idle *, void ); DECL_LINK( RegionSelect, ListBox * ); DECL_LINK(TemplateSelect, void *); @@ -169,12 +169,12 @@ public: void SetTemplateFlags(SfxTemplateFlags nSet); }; -IMPL_LINK_NOARG(SfxNewFileDialog_Impl, Update) +IMPL_LINK_NOARG_TYPED(SfxNewFileDialog_Impl, Update, Idle *, void) { if ( xDocShell.Is() ) { if ( xDocShell->GetProgress() ) - return sal_False; + return; xDocShell.Clear(); } @@ -183,7 +183,7 @@ IMPL_LINK_NOARG(SfxNewFileDialog_Impl, Update) { m_pPreviewWin->Invalidate(); m_pPreviewWin->SetObjectShell( 0); - return 0; + return; } if ( m_pMoreBt->get_expanded() && (nFlags & SFXWB_PREVIEW) == SFXWB_PREVIEW) @@ -232,13 +232,12 @@ IMPL_LINK_NOARG(SfxNewFileDialog_Impl, Update) if ( !xDocShell.Is() ) { m_pPreviewWin->SetObjectShell( 0 ); - return sal_False; + return; } } m_pPreviewWin->SetObjectShell( xDocShell ); } - return sal_True; } |