summaryrefslogtreecommitdiff
path: root/dtrans/source/win32/clipb/WinClipbImpl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dtrans/source/win32/clipb/WinClipbImpl.cxx')
-rw-r--r--dtrans/source/win32/clipb/WinClipbImpl.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/dtrans/source/win32/clipb/WinClipbImpl.cxx b/dtrans/source/win32/clipb/WinClipbImpl.cxx
index f3daae02a5db..d38c30855435 100644
--- a/dtrans/source/win32/clipb/WinClipbImpl.cxx
+++ b/dtrans/source/win32/clipb/WinClipbImpl.cxx
@@ -48,15 +48,15 @@ using namespace com::sun::star::datatransfer::clipboard;
using namespace com::sun::star::datatransfer::clipboard::RenderingCapabilities;
// definition of static members
-CWinClipbImpl* CWinClipbImpl::s_pCWinClipbImpl = NULL;
+CWinClipbImpl* CWinClipbImpl::s_pCWinClipbImpl = nullptr;
osl::Mutex CWinClipbImpl::s_aMutex;
CWinClipbImpl::CWinClipbImpl( const OUString& aClipboardName, CWinClipboard* theWinClipboard ) :
m_itsName( aClipboardName ),
m_pWinClipboard( theWinClipboard ),
- m_pCurrentClipContent( NULL )
+ m_pCurrentClipContent( nullptr )
{
- OSL_ASSERT( NULL != m_pWinClipboard );
+ OSL_ASSERT( nullptr != m_pWinClipboard );
// necessary to reassociate from
// the static callback function
@@ -67,7 +67,7 @@ CWinClipbImpl::CWinClipbImpl( const OUString& aClipboardName, CWinClipboard* the
CWinClipbImpl::~CWinClipbImpl( )
{
ClearableMutexGuard aGuard( s_aMutex );
- s_pCWinClipbImpl = NULL;
+ s_pCWinClipbImpl = nullptr;
aGuard.clear( );
unregisterClipboardViewer( );
@@ -79,7 +79,7 @@ Reference< XTransferable > SAL_CALL CWinClipbImpl::getContents( ) throw( Runtime
// system clipboard
ClearableMutexGuard aGuard( m_ClipContentMutex );
- if ( NULL != m_pCurrentClipContent )
+ if ( nullptr != m_pCurrentClipContent )
{
return m_pCurrentClipContent->m_XTransferable;
}
@@ -154,7 +154,7 @@ void SAL_CALL CWinClipbImpl::flushClipboard( ) throw( RuntimeException )
// It may be possible to move the request to the clipboard STA thread by saving the
// DataObject and call OleIsCurrentClipboard bevore flushing.
- if ( NULL != m_pCurrentClipContent )
+ if ( nullptr != m_pCurrentClipContent )
m_MtaOleClipboard.flushClipboard( );
}
@@ -165,7 +165,7 @@ void SAL_CALL CWinClipbImpl::registerClipboardViewer( )
void SAL_CALL CWinClipbImpl::unregisterClipboardViewer( )
{
- m_MtaOleClipboard.registerClipViewer( NULL );
+ m_MtaOleClipboard.registerClipViewer( nullptr );
}
void SAL_CALL CWinClipbImpl::dispose() throw( RuntimeException )
@@ -178,13 +178,13 @@ void WINAPI CWinClipbImpl::onClipboardContentChanged()
MutexGuard aGuard( s_aMutex );
// reassocition to instance through static member
- if ( NULL != s_pCWinClipbImpl )
+ if ( nullptr != s_pCWinClipbImpl )
s_pCWinClipbImpl->m_pWinClipboard->notifyAllClipboardListener( );
}
void SAL_CALL CWinClipbImpl::onReleaseDataObject( CXNotifyingDataObject* theCaller )
{
- OSL_ASSERT( NULL != theCaller );
+ OSL_ASSERT( nullptr != theCaller );
if ( theCaller )
theCaller->lostOwnership( );
@@ -195,7 +195,7 @@ void SAL_CALL CWinClipbImpl::onReleaseDataObject( CXNotifyingDataObject* theCall
MutexGuard aGuard( m_ClipContentMutex );
if ( m_pCurrentClipContent == theCaller )
- m_pCurrentClipContent = NULL;
+ m_pCurrentClipContent = nullptr;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */