From 48a3d6b85e3c2858c281d5f258fcf2120ca84265 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 4 Aug 2020 15:47:53 +0200 Subject: loplugin:simplifypointertobool (clang-cl) Change-Id: I6512e6e4217ef9084c74e46e3b4f1e8defbd1bec Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100108 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- dtrans/source/win32/clipb/WinClipboard.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'dtrans') 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; -- cgit