diff options
author | Noel Grandin <noel@peralex.com> | 2015-09-15 15:30:24 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-09-16 08:38:55 +0200 |
commit | 7beefb1fe6e56bfaf24d4660e11baf5abfa3b675 (patch) | |
tree | 3545b6093a6764a095f963c1b3cf7ba4296e5938 /sfx2/source/dialog/templdlg.cxx | |
parent | convert Link<> to typed (diff) | |
download | core-7beefb1fe6e56bfaf24d4660e11baf5abfa3b675.tar.gz core-7beefb1fe6e56bfaf24d4660e11baf5abfa3b675.zip |
convert Link<> to typed
Change-Id: If80d43267ce498f713a318f281e5fe86d787d601
Diffstat (limited to 'sfx2/source/dialog/templdlg.cxx')
-rw-r--r-- | sfx2/source/dialog/templdlg.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx index b5124e98e602..8649a4d6ad98 100644 --- a/sfx2/source/dialog/templdlg.cxx +++ b/sfx2/source/dialog/templdlg.cxx @@ -476,7 +476,7 @@ TriState StyleTreeListBox_Impl::NotifyMoving(SvTreeListEntry* pTarget, return TRISTATE_FALSE; aParent = GetEntryText(pTarget); aStyle = GetEntryText(pEntry); - const bool bRet = (bool)aDropLink.Call(this); + const bool bRet = aDropLink.Call(*this); rpNewParent = pTarget; lPos=0; IntlWrapper aIntlWrapper( Application::GetSettings().GetLanguageTag() ); @@ -1864,13 +1864,13 @@ SfxObjectShell* SfxCommonTemplateDialog_Impl::SaveSelection() return pDocShell; } -IMPL_LINK( SfxCommonTemplateDialog_Impl, DropHdl, StyleTreeListBox_Impl *, pBox ) +IMPL_LINK_TYPED( SfxCommonTemplateDialog_Impl, DropHdl, StyleTreeListBox_Impl&, rBox, bool ) { - bDontUpdate=true; + bDontUpdate = true; const SfxStyleFamilyItem *pItem = GetFamilyItem_Impl(); const SfxStyleFamily eFam = pItem->GetFamily(); - long ret= pStyleSheetPool->SetParent(eFam,pBox->GetStyle(), pBox->GetParent())? 1L: 0L; - bDontUpdate=false; + bool ret = pStyleSheetPool->SetParent(eFam, rBox.GetStyle(), rBox.GetParent()); + bDontUpdate = false; return ret; } |