summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-03-19 10:21:05 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-03-19 10:21:13 +0000
commit944d1fd5ca97969bc2cf45376737813c588f6637 (patch)
tree2ee326bafdb8ec6a5618ec86a3d49751f949557c /comphelper
parenta251fe4d48237a4d9c9530dafc7bbdce6028e9cf (diff)
fix windows build and sal_Bool->bool
Change-Id: If88a5b1171ef0b586861dd071820bc993c4cf06e
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/misc/mimeconfighelper.cxx10
1 files changed, 4 insertions, 6 deletions
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 )
{