diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-25 12:03:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-02 08:02:54 +0000 |
commit | 4978328534c0f759eea7d0c196046f1d53b06925 (patch) | |
tree | cf9dcd62c4f09dcd08115bbda2a8950678a38562 /unotools | |
parent | expand out ::sax::Converter::convertNumber to OUString::number (diff) | |
download | core-4978328534c0f759eea7d0c196046f1d53b06925.tar.gz core-4978328534c0f759eea7d0c196046f1d53b06925.zip |
convert method names in tools::SvRef to be more like our other..
reference classes, uno::Reference and rtl::Reference.
Specifically rename Is()->is() and Clear()->clear().
Change-Id: Icb7e05e2d09cb9977121508b837ba0961dabb4ae
Reviewed-on: https://gerrit.libreoffice.org/33576
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/streaming/streamhelper.cxx | 10 | ||||
-rw-r--r-- | unotools/source/ucbhelper/ucbstreamhelper.cxx | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/unotools/source/streaming/streamhelper.cxx b/unotools/source/streaming/streamhelper.cxx index d3f41ad5e286..bad020f8049d 100644 --- a/unotools/source/streaming/streamhelper.cxx +++ b/unotools/source/streaming/streamhelper.cxx @@ -24,7 +24,7 @@ namespace utl sal_Int32 SAL_CALL OInputStreamHelper::readBytes(css::uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead) { - if (!m_xLockBytes.Is()) + if (!m_xLockBytes.is()) throw css::io::NotConnectedException(OUString(), static_cast<css::uno::XWeak*>(this)); if (nBytesToRead < 0) @@ -61,7 +61,7 @@ sal_Int64 SAL_CALL OInputStreamHelper::getPosition( ) sal_Int64 SAL_CALL OInputStreamHelper::getLength( ) { - if (!m_xLockBytes.Is()) + if (!m_xLockBytes.is()) return 0; ::osl::MutexGuard aGuard( m_aMutex ); @@ -80,7 +80,7 @@ sal_Int32 SAL_CALL OInputStreamHelper::readSomeBytes(css::uno::Sequence< sal_Int void SAL_CALL OInputStreamHelper::skipBytes(sal_Int32 nBytesToSkip) { ::osl::MutexGuard aGuard( m_aMutex ); - if (!m_xLockBytes.Is()) + if (!m_xLockBytes.is()) throw css::io::NotConnectedException(OUString(), static_cast<css::uno::XWeak*>(this)); if (nBytesToSkip < 0) @@ -92,7 +92,7 @@ void SAL_CALL OInputStreamHelper::skipBytes(sal_Int32 nBytesToSkip) sal_Int32 SAL_CALL OInputStreamHelper::available() { ::osl::MutexGuard aGuard( m_aMutex ); - if (!m_xLockBytes.Is()) + if (!m_xLockBytes.is()) throw css::io::NotConnectedException(OUString(), static_cast<css::uno::XWeak*>(this)); return m_nAvailable; @@ -101,7 +101,7 @@ sal_Int32 SAL_CALL OInputStreamHelper::available() void SAL_CALL OInputStreamHelper::closeInput() { ::osl::MutexGuard aGuard( m_aMutex ); - if (!m_xLockBytes.Is()) + if (!m_xLockBytes.is()) throw css::io::NotConnectedException(OUString(), static_cast<css::uno::XWeak*>(this)); m_xLockBytes = nullptr; diff --git a/unotools/source/ucbhelper/ucbstreamhelper.cxx b/unotools/source/ucbhelper/ucbstreamhelper.cxx index 8628634d59ac..034eaf287d33 100644 --- a/unotools/source/ucbhelper/ucbstreamhelper.cxx +++ b/unotools/source/ucbhelper/ucbstreamhelper.cxx @@ -120,7 +120,7 @@ static SvStream* lcl_CreateStream( const OUString& rFileName, StreamMode eOpenMo comphelper::getProcessComponentContext() ); xLockBytes = UcbLockBytes::CreateLockBytes( aContent.get(), Sequence < PropertyValue >(), eOpenMode, xInteractionHandler ); - if ( xLockBytes.Is() ) + if ( xLockBytes.is() ) { pStream = new SvStream( xLockBytes.get() ); pStream->SetBufferSize( 4096 ); @@ -169,7 +169,7 @@ SvStream* UcbStreamHelper::CreateStream( const Reference < XInputStream >& xStre { SvStream* pStream = nullptr; UcbLockBytesRef xLockBytes = UcbLockBytes::CreateInputLockBytes( xStream ); - if ( xLockBytes.Is() ) + if ( xLockBytes.is() ) { pStream = new SvStream( xLockBytes.get() ); pStream->SetBufferSize( 4096 ); @@ -185,7 +185,7 @@ SvStream* UcbStreamHelper::CreateStream( const Reference < XStream >& xStream ) if ( xStream->getOutputStream().is() ) { UcbLockBytesRef xLockBytes = UcbLockBytes::CreateLockBytes( xStream ); - if ( xLockBytes.Is() ) + if ( xLockBytes.is() ) { pStream = new SvStream( xLockBytes.get() ); pStream->SetBufferSize( 4096 ); @@ -202,7 +202,7 @@ SvStream* UcbStreamHelper::CreateStream( const Reference < XInputStream >& xStre { SvStream* pStream = nullptr; UcbLockBytesRef xLockBytes = UcbLockBytes::CreateInputLockBytes( xStream ); - if ( xLockBytes.Is() ) + if ( xLockBytes.is() ) { if ( !bCloseStream ) xLockBytes->setDontClose_Impl(); @@ -221,7 +221,7 @@ SvStream* UcbStreamHelper::CreateStream( const Reference < XStream >& xStream, b if ( xStream->getOutputStream().is() ) { UcbLockBytesRef xLockBytes = UcbLockBytes::CreateLockBytes( xStream ); - if ( xLockBytes.Is() ) + if ( xLockBytes.is() ) { if ( !bCloseStream ) xLockBytes->setDontClose_Impl(); |