summaryrefslogtreecommitdiff
path: root/dtrans
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-08-04 15:47:53 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-08-04 23:28:17 +0200
commit48a3d6b85e3c2858c281d5f258fcf2120ca84265 (patch)
tree1f3d2b1f80d4033038b1c9ad1dbbb5ce18f3ff43 /dtrans
parent5eb43d74e1aea8eebb67e2d9e98335a1c5d81248 (diff)
loplugin:simplifypointertobool (clang-cl)
Change-Id: I6512e6e4217ef9084c74e46e3b4f1e8defbd1bec Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100108 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'dtrans')
-rw-r--r--dtrans/source/win32/clipb/WinClipboard.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/dtrans/source/win32/clipb/WinClipboard.cxx b/dtrans/source/win32/clipb/WinClipboard.cxx
index 7de317766d77..8a1d1cc07e04 100644
--- a/dtrans/source/win32/clipb/WinClipboard.cxx
+++ b/dtrans/source/win32/clipb/WinClipboard.cxx
@@ -60,7 +60,7 @@ Reference< XTransferable > SAL_CALL CWinClipboard::getContents( )
throw DisposedException("object is already disposed",
static_cast< XClipboardEx* >( this ) );
- if ( nullptr != m_pImpl.get( ) )
+ if ( m_pImpl )
return m_pImpl->getContents( );
return Reference< XTransferable >( );
@@ -75,7 +75,7 @@ void SAL_CALL CWinClipboard::setContents( const Reference< XTransferable >& xTra
throw DisposedException("object is already disposed",
static_cast< XClipboardEx* >( this ) );
- if ( nullptr != m_pImpl.get( ) )
+ if ( m_pImpl )
m_pImpl->setContents( xTransferable, xClipboardOwner );
}
@@ -85,7 +85,7 @@ OUString SAL_CALL CWinClipboard::getName( )
throw DisposedException("object is already disposed",
static_cast< XClipboardEx* >( this ) );
- if ( nullptr != m_pImpl.get( ) )
+ if ( m_pImpl )
return m_pImpl->getName( );
return OUString();
@@ -101,7 +101,7 @@ void SAL_CALL CWinClipboard::flushClipboard( )
throw DisposedException("object is already disposed",
static_cast< XClipboardEx* >( this ) );
- if ( nullptr != m_pImpl.get( ) )
+ if ( m_pImpl )
m_pImpl->flushClipboard( );
}
@@ -113,7 +113,7 @@ sal_Int8 SAL_CALL CWinClipboard::getRenderingCapabilities( )
throw DisposedException("object is already disposed",
static_cast< XClipboardEx* >( this ) );
- if ( nullptr != m_pImpl.get( ) )
+ if ( m_pImpl )
return CWinClipbImpl::getRenderingCapabilities( );
return 0;