diff options
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/ucbhelper/tempfile.cxx | 2 | ||||
-rw-r--r-- | unotools/source/ucbhelper/ucblockbytes.cxx | 2 | ||||
-rw-r--r-- | unotools/source/ucbhelper/ucbstreamhelper.cxx | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/unotools/source/ucbhelper/tempfile.cxx b/unotools/source/ucbhelper/tempfile.cxx index 3ad492e24fba..70b4259d4bc4 100644 --- a/unotools/source/ucbhelper/tempfile.cxx +++ b/unotools/source/ucbhelper/tempfile.cxx @@ -379,7 +379,7 @@ SvStream* TempFile::GetStream( StreamMode eMode ) if ( !GetURL().isEmpty() ) pStream = UcbStreamHelper::CreateStream( aURL, eMode, true /* bFileExists */ ); else - pStream = new SvMemoryStream( eMode ); + pStream = new SvMemoryStream( NULL, 0, eMode ); } return pStream; diff --git a/unotools/source/ucbhelper/ucblockbytes.cxx b/unotools/source/ucbhelper/ucblockbytes.cxx index b91d53f06175..fa6a7668ba21 100644 --- a/unotools/source/ucbhelper/ucblockbytes.cxx +++ b/unotools/source/ucbhelper/ucblockbytes.cxx @@ -1558,7 +1558,7 @@ UcbLockBytesRef UcbLockBytes::CreateLockBytes( const Reference < XContent >& xCo UcbLockBytesRef xLockBytes = new UcbLockBytes( pHandler ); xLockBytes->SetSynchronMode( !pHandler ); Reference< XActiveDataControl > xSink; - if ( eOpenMode & STREAM_WRITE ) + if ( eOpenMode & StreamMode::WRITE ) xSink = (XActiveDataControl*) new UcbStreamer_Impl( xLockBytes ); else xSink = (XActiveDataControl*) new UcbDataSink_Impl( xLockBytes ); diff --git a/unotools/source/ucbhelper/ucbstreamhelper.cxx b/unotools/source/ucbhelper/ucbstreamhelper.cxx index aa8f12dcd58f..fc3d31c9ee7b 100644 --- a/unotools/source/ucbhelper/ucbstreamhelper.cxx +++ b/unotools/source/ucbhelper/ucbstreamhelper.cxx @@ -49,9 +49,9 @@ static SvStream* lcl_CreateStream( const OUString& rFileName, StreamMode eOpenMo UniversalContentBroker::create( comphelper::getProcessComponentContext() ) ); UcbLockBytesRef xLockBytes; - if ( eOpenMode & STREAM_WRITE ) + if ( eOpenMode & StreamMode::WRITE ) { - bool bTruncate = ( eOpenMode & STREAM_TRUNC ) != 0; + bool bTruncate = bool( eOpenMode & StreamMode::TRUNC ); if ( bTruncate ) { try |