summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
Diffstat (limited to 'filter')
-rw-r--r--filter/source/flash/swffilter.cxx4
-rw-r--r--filter/source/svg/svgfilter.cxx8
2 files changed, 3 insertions, 9 deletions
diff --git a/filter/source/flash/swffilter.cxx b/filter/source/flash/swffilter.cxx
index 5ac39b8c6a2e..81ec8a03946d 100644
--- a/filter/source/flash/swffilter.cxx
+++ b/filter/source/flash/swffilter.cxx
@@ -262,9 +262,7 @@ sal_Bool SAL_CALL FlashExportFilter::filter( const css::uno::Sequence< css::bean
if(xSelection.is())
{
- Any aSelection = xSelection->getSelection();
- if (aSelection.hasValue())
- aSelection >>= mxSelectedShapes;
+ xSelection->getSelection() >>= mxSelectedShapes;
}
}
}
diff --git a/filter/source/svg/svgfilter.cxx b/filter/source/svg/svgfilter.cxx
index bd6dae648a25..c1faa06469b5 100644
--- a/filter/source/svg/svgfilter.cxx
+++ b/filter/source/svg/svgfilter.cxx
@@ -235,12 +235,8 @@ sal_Bool SAL_CALL SVGFilter::filter( const Sequence< PropertyValue >& rDescripto
if (xSelection.is())
{
- uno::Any aSelection = xSelection->getSelection();
-
- if (aSelection.hasValue())
- {
- bGotSelection = ( aSelection >>= maShapeSelection );
- }
+ bGotSelection
+ = ( xSelection->getSelection() >>= maShapeSelection );
}
}