diff options
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/svg/svgexport.cxx | 2 | ||||
-rw-r--r-- | filter/source/textfilterdetect/filterdetect.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/filter/source/svg/svgexport.cxx b/filter/source/svg/svgexport.cxx index d4db26ef8e52..91a1d35c3bb4 100644 --- a/filter/source/svg/svgexport.cxx +++ b/filter/source/svg/svgexport.cxx @@ -517,7 +517,7 @@ bool SVGFilter::implExport( const Sequence< PropertyValue >& rDescriptor ) OUString aFileName; pValue[ i ].Value >>= aFileName; - pOStm.reset(::utl::UcbStreamHelper::CreateStream( aFileName, StreamMode::WRITE | StreamMode::TRUNC )); + pOStm = ::utl::UcbStreamHelper::CreateStream( aFileName, StreamMode::WRITE | StreamMode::TRUNC ); if( pOStm ) xOStm.set( new ::utl::OOutputStreamWrapper ( *pOStm ) ); diff --git a/filter/source/textfilterdetect/filterdetect.cxx b/filter/source/textfilterdetect/filterdetect.cxx index 2e3e08028683..3eeb0b1ee485 100644 --- a/filter/source/textfilterdetect/filterdetect.cxx +++ b/filter/source/textfilterdetect/filterdetect.cxx @@ -165,9 +165,9 @@ OUString SAL_CALL PlainTextFilterDetect::detect(uno::Sequence<beans::PropertyVal ZCodec aCodecGZ; std::unique_ptr<SvStream> pInStream; if (xStream.is()) - pInStream.reset(utl::UcbStreamHelper::CreateStream(xStream)); + pInStream = utl::UcbStreamHelper::CreateStream(xStream); else - pInStream.reset(utl::UcbStreamHelper::CreateStream(xInStream)); + pInStream = utl::UcbStreamHelper::CreateStream(xInStream); std::unique_ptr<SvMemoryStream> pDecompressedStream(new SvMemoryStream()); if (aCodecGZ.AttemptDecompression(*pInStream, *pDecompressedStream)) { |