summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-30 10:53:10 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-30 10:53:10 +0200
commit0dccc59702c4a30e9aca8251e64678a2588a5513 (patch)
tree409bd4e48b6efc331baedd0a7a07184ddad03a68 /sfx2
parenta29efdc0489df61a4ad6b717d93775a7c244596f (diff)
Use typed MaybeFile Link
Change-Id: Ic9eebca9d8fe3e9173b1873bdc7800e5161f9999
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/appmain.cxx2
-rw-r--r--sfx2/source/bastyp/fltfnc.cxx6
2 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/appl/appmain.cxx b/sfx2/source/appl/appmain.cxx
index c8f8da897a18..128b6f9ff1c6 100644
--- a/sfx2/source/appl/appmain.cxx
+++ b/sfx2/source/appl/appmain.cxx
@@ -51,7 +51,7 @@ SfxFilterMatcher& SfxApplication::GetFilterMatcher()
if( !pAppData_Impl->pMatcher )
{
pAppData_Impl->pMatcher = new SfxFilterMatcher();
- URIHelper::SetMaybeFileHdl( LINK(
+ URIHelper::SetMaybeFileHdl( LINK_TYPED(
pAppData_Impl->pMatcher, SfxFilterMatcher, MaybeFileHdl_Impl ) );
}
return *pAppData_Impl->pMatcher;
diff --git a/sfx2/source/bastyp/fltfnc.cxx b/sfx2/source/bastyp/fltfnc.cxx
index 6db9950b47e0..09f59473b5b6 100644
--- a/sfx2/source/bastyp/fltfnc.cxx
+++ b/sfx2/source/bastyp/fltfnc.cxx
@@ -862,7 +862,7 @@ const SfxFilter* SfxFilterMatcher::GetFilter4FilterName( const OUString& rName,
return NULL;
}
-IMPL_STATIC_LINK( SfxFilterMatcher, MaybeFileHdl_Impl, OUString*, pString )
+IMPL_STATIC_LINK_TYPED( SfxFilterMatcher, MaybeFileHdl_Impl, OUString*, pString, bool )
{
const SfxFilter* pFilter = pThis->GetFilter4Extension( *pString, SfxFilterFlags::IMPORT );
if (pFilter && !pFilter->GetWildcard().Matches( OUString() ) &&
@@ -870,9 +870,9 @@ IMPL_STATIC_LINK( SfxFilterMatcher, MaybeFileHdl_Impl, OUString*, pString )
!pFilter->GetWildcard().Matches(OUString('*'))
)
{
- return sal_True;
+ return true;
}
- return sal_False;
+ return false;
}