summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-06-03 07:54:21 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-06-05 21:17:56 +0200
commit84e18e91f3464f504fb68e0fc7eae7a59272a7da (patch)
treed10693c23bc01afbf4ed9ef1891258e7304745cc /unotools
parentbb6fae4d534e3984677bacc47a17bddfdc29329a (diff)
Improved loplugin:redundantcast, const/static_cast combinations: unotools
Change-Id: I5a4956f6c707216f11ab9cde2fcd961a662ad70d
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/ucbhelper/xtempfile.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/unotools/source/ucbhelper/xtempfile.cxx b/unotools/source/ucbhelper/xtempfile.cxx
index 7a7d8bc6b8c5..9482a75598d6 100644
--- a/unotools/source/ucbhelper/xtempfile.cxx
+++ b/unotools/source/ucbhelper/xtempfile.cxx
@@ -147,7 +147,7 @@ sal_Int32 SAL_CALL OTempFileService::readBytes( css::uno::Sequence< sal_Int8 >&
{
::osl::MutexGuard aGuard( maMutex );
if ( mbInClosed )
- throw css::io::NotConnectedException ( OUString(), const_cast < css::uno::XWeak * > ( static_cast < const css::uno::XWeak * > (this ) ) );
+ throw css::io::NotConnectedException ( OUString(), static_cast < css::uno::XWeak * > (this ) );
checkConnected();
if (nBytesToRead < 0)
@@ -180,7 +180,7 @@ sal_Int32 SAL_CALL OTempFileService::readSomeBytes( css::uno::Sequence< sal_Int8
{
::osl::MutexGuard aGuard( maMutex );
if ( mbInClosed )
- throw css::io::NotConnectedException ( OUString(), const_cast < css::uno::XWeak * > ( static_cast < const css::uno::XWeak * > (this ) ) );
+ throw css::io::NotConnectedException ( OUString(), static_cast < css::uno::XWeak * > (this ) );
checkConnected();
checkError();
@@ -200,7 +200,7 @@ void SAL_CALL OTempFileService::skipBytes( sal_Int32 nBytesToSkip )
{
::osl::MutexGuard aGuard( maMutex );
if ( mbInClosed )
- throw css::io::NotConnectedException ( OUString(), const_cast < css::uno::XWeak * > ( static_cast < const css::uno::XWeak * > (this ) ) );
+ throw css::io::NotConnectedException ( OUString(), static_cast < css::uno::XWeak * > (this ) );
checkConnected();
checkError();
@@ -211,7 +211,7 @@ sal_Int32 SAL_CALL OTempFileService::available( )
{
::osl::MutexGuard aGuard( maMutex );
if ( mbInClosed )
- throw css::io::NotConnectedException ( OUString(), const_cast < css::uno::XWeak * > ( static_cast < const css::uno::XWeak * > (this ) ) );
+ throw css::io::NotConnectedException ( OUString(), static_cast < css::uno::XWeak * > (this ) );
checkConnected();
@@ -225,7 +225,7 @@ void SAL_CALL OTempFileService::closeInput( )
{
::osl::MutexGuard aGuard( maMutex );
if ( mbInClosed )
- throw css::io::NotConnectedException ( OUString(), const_cast < css::uno::XWeak * > ( static_cast < const css::uno::XWeak * > (this ) ) );
+ throw css::io::NotConnectedException ( OUString(), static_cast < css::uno::XWeak * > (this ) );
mbInClosed = true;
@@ -245,7 +245,7 @@ void SAL_CALL OTempFileService::writeBytes( const css::uno::Sequence< sal_Int8 >
{
::osl::MutexGuard aGuard( maMutex );
if ( mbOutClosed )
- throw css::io::NotConnectedException ( OUString(), const_cast < css::uno::XWeak * > ( static_cast < const css::uno::XWeak * > (this ) ) );
+ throw css::io::NotConnectedException ( OUString(), static_cast < css::uno::XWeak * > (this ) );
checkConnected();
sal_uInt32 nWritten = mpStream->WriteBytes(aData.getConstArray(), aData.getLength());
@@ -257,7 +257,7 @@ void SAL_CALL OTempFileService::flush( )
{
::osl::MutexGuard aGuard( maMutex );
if ( mbOutClosed )
- throw css::io::NotConnectedException ( OUString(), const_cast < css::uno::XWeak * > ( static_cast < const css::uno::XWeak * > (this ) ) );
+ throw css::io::NotConnectedException ( OUString(), static_cast < css::uno::XWeak * > (this ) );
checkConnected();
mpStream->Flush();
@@ -267,7 +267,7 @@ void SAL_CALL OTempFileService::closeOutput( )
{
::osl::MutexGuard aGuard( maMutex );
if ( mbOutClosed )
- throw css::io::NotConnectedException ( OUString(), const_cast < css::uno::XWeak * > ( static_cast < const css::uno::XWeak * > (this ) ) );
+ throw css::io::NotConnectedException ( OUString(), static_cast < css::uno::XWeak * > (this ) );
mbOutClosed = true;
@@ -319,7 +319,7 @@ void OTempFileService::checkConnected ()
}
if (!mpStream)
- throw css::io::NotConnectedException ( OUString(), const_cast < css::uno::XWeak * > ( static_cast < const css::uno::XWeak * > (this ) ) );
+ throw css::io::NotConnectedException ( OUString(), static_cast < css::uno::XWeak * > (this ) );
}
// XSeekable