summaryrefslogtreecommitdiff
path: root/filter/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-23 17:03:58 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-23 17:03:58 +0200
commitac1130130b50c6e047629e4387f8bbabe4241494 (patch)
tree6d02203b089066a45a2e008d6357d935c1e8d7fa /filter/source
parentec7af68a0d4c0d9b509f7267ba49be65dfc8732b (diff)
Use comphelper::SequenceAsHashMap::getUnpackedValueOrDefault<bool>
...instead of ...<sal_Bool>; plus ensuing loplugin:implicitboolconversion Change-Id: I5400e9d3175b9fe9b6088d37fe6bf3275314d7d0
Diffstat (limited to 'filter/source')
-rw-r--r--filter/source/config/cache/typedetection.cxx2
-rw-r--r--filter/source/svg/svgexport.cxx8
2 files changed, 5 insertions, 5 deletions
diff --git a/filter/source/config/cache/typedetection.cxx b/filter/source/config/cache/typedetection.cxx
index a9d1ebdff88c..0a457e265bdc 100644
--- a/filter/source/config/cache/typedetection.cxx
+++ b/filter/source/config/cache/typedetection.cxx
@@ -1135,7 +1135,7 @@ void TypeDetection::impl_openStream(utl::MediaDescriptor& rDescriptor)
{
bool bSuccess = false;
OUString sURL = rDescriptor.getUnpackedValueOrDefault( utl::MediaDescriptor::PROP_URL(), OUString() );
- bool bRequestedReadOnly = rDescriptor.getUnpackedValueOrDefault( utl::MediaDescriptor::PROP_READONLY(), sal_False );
+ bool bRequestedReadOnly = rDescriptor.getUnpackedValueOrDefault( utl::MediaDescriptor::PROP_READONLY(), false );
if ( !sURL.isEmpty() && ::utl::LocalFileHelper::IsLocalFile( INetURLObject( sURL ).GetMainURL( INetURLObject::NO_DECODE ) ) )
{
// OOo uses own file locking mechanics in case of local file
diff --git a/filter/source/svg/svgexport.cxx b/filter/source/svg/svgexport.cxx
index 84572d0b5951..7ed8a0a617ef 100644
--- a/filter/source/svg/svgexport.cxx
+++ b/filter/source/svg/svgexport.cxx
@@ -332,7 +332,7 @@ SVGExport::SVGExport(
comphelper::SequenceAsHashMap aFilterDataHashMap = rFilterData;
// TinyProfile
- mbIsUseTinyProfile = aFilterDataHashMap.getUnpackedValueOrDefault(SVG_PROP_TINYPROFILE, sal_True);
+ mbIsUseTinyProfile = aFilterDataHashMap.getUnpackedValueOrDefault(SVG_PROP_TINYPROFILE, true);
// Font Embedding
comphelper::SequenceAsHashMap::const_iterator iter = aFilterDataHashMap.find(SVG_PROP_EMBEDFONTS);
@@ -351,13 +351,13 @@ SVGExport::SVGExport(
}
// Native Decoration
- mbIsUseNativeTextDecoration = mbIsUseTinyProfile ? sal_False : aFilterDataHashMap.getUnpackedValueOrDefault(SVG_PROP_NATIVEDECORATION, sal_False);
+ mbIsUseNativeTextDecoration = mbIsUseTinyProfile ? sal_False : aFilterDataHashMap.getUnpackedValueOrDefault(SVG_PROP_NATIVEDECORATION, false);
// Tiny Opacity (supported from SVG Tiny 1.2)
- mbIsUseOpacity = aFilterDataHashMap.getUnpackedValueOrDefault(SVG_PROP_OPACITY, sal_True);
+ mbIsUseOpacity = aFilterDataHashMap.getUnpackedValueOrDefault(SVG_PROP_OPACITY, true);
// Positioned Characters (Seems to be experimental, as it was always initialized with false)
- mbIsUsePositionedCharacters = aFilterDataHashMap.getUnpackedValueOrDefault(SVG_PROP_POSITIONED_CHARACTERS, sal_False);
+ mbIsUsePositionedCharacters = aFilterDataHashMap.getUnpackedValueOrDefault(SVG_PROP_POSITIONED_CHARACTERS, false);
}