From 944d1fd5ca97969bc2cf45376737813c588f6637 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 19 Mar 2015 10:21:05 +0000 Subject: fix windows build and sal_Bool->bool Change-Id: If88a5b1171ef0b586861dd071820bc993c4cf06e --- comphelper/source/misc/mimeconfighelper.cxx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'comphelper') diff --git a/comphelper/source/misc/mimeconfighelper.cxx b/comphelper/source/misc/mimeconfighelper.cxx index 17269a3acb07..361cc00874e0 100644 --- a/comphelper/source/misc/mimeconfighelper.cxx +++ b/comphelper/source/misc/mimeconfighelper.cxx @@ -696,23 +696,21 @@ SfxFilterFlags MimeConfigurationHelper::GetFilterFlags( const OUString& aFilterN return nFlags; } -sal_Bool MimeConfigurationHelper::AddFilterNameCheckOwnFile( +bool MimeConfigurationHelper::AddFilterNameCheckOwnFile( uno::Sequence< beans::PropertyValue >& aMediaDescr ) { - sal_Bool bResult = sal_False; - OUString aFilterName = UpdateMediaDescriptorWithFilterName( aMediaDescr, sal_False ); if ( !aFilterName.isEmpty() ) { SfxFilterFlags nFlags = GetFilterFlags( aFilterName ); // check the OWN flag - bResult = ( nFlags & SfxFilterFlags::OWN ); + return bool(nFlags & SfxFilterFlags::OWN); } - return bResult; + return false; } -#endif +#endif OUString MimeConfigurationHelper::GetDefaultFilterFromServiceName( const OUString& aServiceName, sal_Int32 nVersion ) { -- cgit v1.2.3