summaryrefslogtreecommitdiff
path: root/svtools/source/misc
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/misc')
-rw-r--r--svtools/source/misc/dialogcontrolling.cxx4
-rw-r--r--svtools/source/misc/ehdl.cxx6
-rw-r--r--svtools/source/misc/embedhlp.cxx26
-rw-r--r--svtools/source/misc/embedtransfer.cxx8
-rw-r--r--svtools/source/misc/imagemgr.cxx10
-rw-r--r--svtools/source/misc/imageresourceaccess.cxx2
-rw-r--r--svtools/source/misc/imap.cxx4
-rw-r--r--svtools/source/misc/openfiledroptargetlistener.cxx2
-rw-r--r--svtools/source/misc/sampletext.cxx2
-rw-r--r--svtools/source/misc/svtaccessiblefactory.cxx34
-rw-r--r--svtools/source/misc/svtresid.cxx2
-rw-r--r--svtools/source/misc/templatefoldercache.cxx4
-rw-r--r--svtools/source/misc/transfer.cxx22
-rw-r--r--svtools/source/misc/transfer2.cxx10
14 files changed, 68 insertions, 68 deletions
diff --git a/svtools/source/misc/dialogcontrolling.cxx b/svtools/source/misc/dialogcontrolling.cxx
index 12219e4f0e94..8ab29197b385 100644
--- a/svtools/source/misc/dialogcontrolling.cxx
+++ b/svtools/source/misc/dialogcontrolling.cxx
@@ -98,7 +98,7 @@ namespace svt
{
m_pImpl->aConcernedWindows.push_back( &_rWindow );
- VclWindowEvent aEvent( &_rWindow, 0, NULL );
+ VclWindowEvent aEvent( &_rWindow, 0, nullptr );
impl_update( aEvent, _rWindow );
}
@@ -169,7 +169,7 @@ namespace svt
void ControlDependencyManager::addController( const PDialogController& _pController )
{
- OSL_ENSURE( _pController.get() != NULL, "ControlDependencyManager::addController: invalid controller, this will crash, sooner or later!" );
+ OSL_ENSURE( _pController.get() != nullptr, "ControlDependencyManager::addController: invalid controller, this will crash, sooner or later!" );
m_pImpl->aControllers.push_back( _pController );
}
diff --git a/svtools/source/misc/ehdl.cxx b/svtools/source/misc/ehdl.cxx
index 9e058f5c3153..c7248717dbbd 100644
--- a/svtools/source/misc/ehdl.cxx
+++ b/svtools/source/misc/ehdl.cxx
@@ -144,7 +144,7 @@ static sal_uInt16 aWndFunc(
SfxErrorHandler::SfxErrorHandler(sal_uInt16 nIdP, sal_uLong lStartP, sal_uLong lEndP, ResMgr *pMgrP) :
- lStart(lStartP), lEnd(lEndP), nId(nIdP), pMgr(pMgrP), pFreeMgr( NULL )
+ lStart(lStartP), lEnd(lEndP), nId(nIdP), pMgr(pMgrP), pFreeMgr( nullptr )
{
RegisterDisplay(&aWndFunc);
@@ -398,7 +398,7 @@ bool SfxErrorContext::GetString(sal_uLong nErrId, OUString &rStr)
{
bool bRet = false;
- ResMgr* pFreeMgr = NULL;
+ ResMgr* pFreeMgr = nullptr;
if( ! pMgr )
{
pFreeMgr = pMgr = ResMgr::CreateResMgr("ofa", Application::GetSettings().GetUILanguageTag() );
@@ -434,7 +434,7 @@ bool SfxErrorContext::GetString(sal_uLong nErrId, OUString &rStr)
if( pFreeMgr )
{
delete pFreeMgr;
- pMgr = NULL;
+ pMgr = nullptr;
}
return bRet;
}
diff --git a/svtools/source/misc/embedhlp.cxx b/svtools/source/misc/embedhlp.cxx
index 8ea50c2f015f..461de46f349c 100644
--- a/svtools/source/misc/embedhlp.cxx
+++ b/svtools/source/misc/embedhlp.cxx
@@ -210,7 +210,7 @@ void SAL_CALL EmbedEventListener_Impl::notifyClosing( const lang::EventObject& S
if ( pObject && Source.Source == pObject->GetObject() )
{
pObject->Clear();
- pObject = 0;
+ pObject = nullptr;
}
}
@@ -219,7 +219,7 @@ void SAL_CALL EmbedEventListener_Impl::disposing( const lang::EventObject& aEven
if ( pObject && aEvent.Source == pObject->GetObject() )
{
pObject->Clear();
- pObject = 0;
+ pObject = nullptr;
}
}
@@ -241,9 +241,9 @@ struct EmbeddedObjectRef_Impl
awt::Size aDefaultSizeForChart_In_100TH_MM;//#i103460# charts do not necessaryly have an own size within ODF files, in this case they need to use the size settings from the surrounding frame, which is made available with this member
EmbeddedObjectRef_Impl() :
- xListener(0),
- pContainer(NULL),
- pGraphic(NULL),
+ xListener(nullptr),
+ pContainer(nullptr),
+ pGraphic(nullptr),
nViewAspect(embed::Aspects::MSOLE_CONTENT),
bIsLocked(false),
bNeedUpdate(false),
@@ -253,11 +253,11 @@ struct EmbeddedObjectRef_Impl
EmbeddedObjectRef_Impl( const EmbeddedObjectRef_Impl& r ) :
mxObj(r.mxObj),
- xListener(0),
+ xListener(nullptr),
aPersistName(r.aPersistName),
aMediaType(r.aMediaType),
pContainer(r.pContainer),
- pGraphic(NULL),
+ pGraphic(nullptr),
nViewAspect(r.nViewAspect),
bIsLocked(r.bIsLocked),
bNeedUpdate(r.bNeedUpdate),
@@ -361,16 +361,16 @@ void EmbeddedObjectRef::Clear()
if ( mpImpl->xListener )
{
- mpImpl->xListener->pObject = 0;
+ mpImpl->xListener->pObject = nullptr;
mpImpl->xListener->release();
- mpImpl->xListener = 0;
+ mpImpl->xListener = nullptr;
}
- mpImpl->mxObj = NULL;
+ mpImpl->mxObj = nullptr;
mpImpl->bNeedUpdate = false;
}
- mpImpl->pContainer = 0;
+ mpImpl->pContainer = nullptr;
mpImpl->bIsLocked = false;
mpImpl->bNeedUpdate = false;
}
@@ -638,13 +638,13 @@ SvStream* EmbeddedObjectRef::GetGraphicStream( bool bUpdate ) const
}
}
- return NULL;
+ return nullptr;
}
void EmbeddedObjectRef::DrawPaintReplacement( const Rectangle &rRect, const OUString &rText, OutputDevice *pOut )
{
MapMode aMM( MAP_APPFONT );
- Size aAppFontSz = pOut->LogicToLogic( Size( 0, 8 ), &aMM, NULL );
+ Size aAppFontSz = pOut->LogicToLogic( Size( 0, 8 ), &aMM, nullptr );
vcl::Font aFnt( OUString("Helvetica"), aAppFontSz );
aFnt.SetTransparent( true );
aFnt.SetColor( Color( COL_LIGHTRED ) );
diff --git a/svtools/source/misc/embedtransfer.cxx b/svtools/source/misc/embedtransfer.cxx
index bd70919a1063..a0a952388a1c 100644
--- a/svtools/source/misc/embedtransfer.cxx
+++ b/svtools/source/misc/embedtransfer.cxx
@@ -42,14 +42,14 @@ SvEmbedTransferHelper::SvEmbedTransferHelper( const uno::Reference< embed::XEmbe
const Graphic* pGraphic,
sal_Int64 nAspect )
: m_xObj( xObj )
-, m_pGraphic( pGraphic ? new Graphic( *pGraphic ) : NULL )
+, m_pGraphic( pGraphic ? new Graphic( *pGraphic ) : nullptr )
, m_nAspect( nAspect )
{
if( xObj.is() )
{
TransferableObjectDescriptor aObjDesc;
- FillTransferableObjectDescriptor( aObjDesc, m_xObj, NULL, m_nAspect );
+ FillTransferableObjectDescriptor( aObjDesc, m_xObj, nullptr, m_nAspect );
PrepareOLE( aObjDesc );
}
}
@@ -61,7 +61,7 @@ SvEmbedTransferHelper::~SvEmbedTransferHelper()
if ( m_pGraphic )
{
delete m_pGraphic;
- m_pGraphic = NULL;
+ m_pGraphic = nullptr;
}
}
@@ -111,7 +111,7 @@ bool SvEmbedTransferHelper::GetData( const css::datatransfer::DataFlavor& rFlavo
{
uno::Reference < embed::XStorage > xStg = comphelper::OStorageHelper::GetTemporaryStorage();
OUString aName( "Dummy" );
- SvStream* pStream = NULL;
+ SvStream* pStream = nullptr;
bool bDeleteStream = false;
uno::Sequence < beans::PropertyValue > aEmpty;
uno::Sequence<beans::PropertyValue> aObjArgs(2);
diff --git a/svtools/source/misc/imagemgr.cxx b/svtools/source/misc/imagemgr.cxx
index 27c3c8e9b0e6..7f011fb29430 100644
--- a/svtools/source/misc/imagemgr.cxx
+++ b/svtools/source/misc/imagemgr.cxx
@@ -169,7 +169,7 @@ static SvtExtensionResIdMapping_Impl const ExtensionMap_Impl[] =
{ "pps", false, STR_DESCRIPTION_POWERPOINT_SHOW, IMG_IMPRESS },
{ "pptx", false, STR_DESCRIPTION_POWERPOINT, IMG_IMPRESS },
{ "oxt", false, STR_DESCRIPTION_EXTENSION, IMG_EXTENSION },
- { 0, false, 0, 0 }
+ { nullptr, false, 0, 0 }
};
struct SvtFactory2ExtensionMapping_Impl
@@ -190,7 +190,7 @@ static SvtFactory2ExtensionMapping_Impl const Fac2ExtMap_Impl[] =
{ "sdraw", "odg" },
{ "smath", "odf" },
{ "sdatabase", "odb" },
- { NULL, NULL }
+ { nullptr, nullptr }
};
@@ -490,10 +490,10 @@ static Image GetImageFromList_Impl( sal_uInt16 nImageId, bool bBig )
// return our new small folder image (256 colors)
return Image( SvtResId( IMG_SVT_FOLDER ) );
- ImageList* pList = NULL;
+ ImageList* pList = nullptr;
- static vcl::DeleteOnDeinit< ImageList > xSmallImageList( NULL );
- static vcl::DeleteOnDeinit< ImageList > xBigImageList( NULL );
+ static vcl::DeleteOnDeinit< ImageList > xSmallImageList( nullptr );
+ static vcl::DeleteOnDeinit< ImageList > xBigImageList( nullptr );
static OUString style = Application::GetSettings().GetStyleSettings().DetermineIconTheme();
// If the style has been changed, throw away our cache of the older images
diff --git a/svtools/source/misc/imageresourceaccess.cxx b/svtools/source/misc/imageresourceaccess.cxx
index 67aaf64d6d22..60a6c0e1be7e 100644
--- a/svtools/source/misc/imageresourceaccess.cxx
+++ b/svtools/source/misc/imageresourceaccess.cxx
@@ -140,7 +140,7 @@ namespace svt
SvStream* GraphicAccess::getImageStream( const Reference< XComponentContext >& _rxContext, const OUString& _rImageResourceURL )
{
- SvStream* pReturn = NULL;
+ SvStream* pReturn = nullptr;
try
{
diff --git a/svtools/source/misc/imap.cxx b/svtools/source/misc/imap.cxx
index 63aa45bd68b1..c2ad3f1aecbf 100644
--- a/svtools/source/misc/imap.cxx
+++ b/svtools/source/misc/imap.cxx
@@ -787,7 +787,7 @@ IMapObject* ImageMap::GetHitIMapObject( const Size& rTotalSize,
}
// walk over all objects and execute HitTest
- IMapObject* pObj = NULL;
+ IMapObject* pObj = nullptr;
for( size_t i = 0, n = maList.size(); i < n; ++i ) {
if ( maList[ i ]->IsHit( aRelPoint ) ) {
pObj = maList[ i ];
@@ -795,7 +795,7 @@ IMapObject* ImageMap::GetHitIMapObject( const Size& rTotalSize,
}
}
- return( pObj ? ( pObj->IsActive() ? pObj : NULL ) : NULL );
+ return( pObj ? ( pObj->IsActive() ? pObj : nullptr ) : nullptr );
}
void ImageMap::Scale( const Fraction& rFracX, const Fraction& rFracY )
diff --git a/svtools/source/misc/openfiledroptargetlistener.cxx b/svtools/source/misc/openfiledroptargetlistener.cxx
index 91cb541dbea0..671c9668fb9c 100644
--- a/svtools/source/misc/openfiledroptargetlistener.cxx
+++ b/svtools/source/misc/openfiledroptargetlistener.cxx
@@ -51,7 +51,7 @@ OpenFileDropTargetListener::~OpenFileDropTargetListener()
m_xTargetFrame.clear();
m_xContext.clear();
delete m_pFormats;
- m_pFormats = NULL;
+ m_pFormats = nullptr;
}
diff --git a/svtools/source/misc/sampletext.cxx b/svtools/source/misc/sampletext.cxx
index ff029c0a25bc..54e62dbd1fff 100644
--- a/svtools/source/misc/sampletext.cxx
+++ b/svtools/source/misc/sampletext.cxx
@@ -194,7 +194,7 @@ OUString makeShortRepresentativeSymbolTextForSelectedFont(OutputDevice &rDevice)
return OUString(aText);
}
- pFontCharMap = 0;
+ pFontCharMap = nullptr;
}
static const sal_Unicode aImplSymbolFontText[] = {
diff --git a/svtools/source/misc/svtaccessiblefactory.cxx b/svtools/source/misc/svtaccessiblefactory.cxx
index 68bef791c846..e5bc5b136b00 100644
--- a/svtools/source/misc/svtaccessiblefactory.cxx
+++ b/svtools/source/misc/svtaccessiblefactory.cxx
@@ -33,10 +33,10 @@ namespace svt
namespace
{
#ifndef DISABLE_DYNLOADING
- static oslModule s_hAccessibleImplementationModule = NULL;
+ static oslModule s_hAccessibleImplementationModule = nullptr;
#endif
#if HAVE_FEATURE_DESKTOP
- static GetSvtAccessibilityComponentFactory s_pAccessibleFactoryFunc = NULL;
+ static GetSvtAccessibilityComponentFactory s_pAccessibleFactoryFunc = nullptr;
#endif
static ::rtl::Reference< IAccessibleFactory > s_pFactory;
@@ -60,7 +60,7 @@ namespace svt
SvHeaderTabListBox& /*rBox*/
) const override
{
- return NULL;
+ return nullptr;
}
virtual IAccessibleBrowseBox*
@@ -69,7 +69,7 @@ namespace svt
IAccessibleTableProvider& /*_rBrowseBox*/
) const override
{
- return NULL;
+ return nullptr;
}
virtual table::IAccessibleTableControl*
@@ -78,7 +78,7 @@ namespace svt
table::IAccessibleTable& /*_rTable*/
) const override
{
- return NULL;
+ return nullptr;
}
virtual css::uno::Reference< css::accessibility::XAccessible >
@@ -87,7 +87,7 @@ namespace svt
const css::uno::Reference< css::accessibility::XAccessible >& /*_xParent*/
) const override
{
- return NULL;
+ return nullptr;
}
virtual css::uno::Reference< css::accessibility::XAccessible >
@@ -95,7 +95,7 @@ namespace svt
TabBar& /*_rTabBar*/
) const override
{
- return NULL;
+ return nullptr;
}
virtual css::uno::Reference< css::accessibility::XAccessibleContext >
@@ -103,7 +103,7 @@ namespace svt
VCLXWindow* /*pVclXWindow*/, TextEngine& /*rEngine*/, TextView& /*rView*/
) const override
{
- return NULL;
+ return nullptr;
}
virtual css::uno::Reference< css::accessibility::XAccessible >
@@ -112,7 +112,7 @@ namespace svt
const css::uno::Reference< css::accessibility::XAccessible >& /*_xParent*/
) const override
{
- return NULL;
+ return nullptr;
}
virtual css::uno::Reference< css::accessibility::XAccessible >
@@ -122,7 +122,7 @@ namespace svt
AccessibleBrowseBoxObjType /*_eObjType*/
) const override
{
- return NULL;
+ return nullptr;
}
virtual css::uno::Reference< css::accessibility::XAccessible >
@@ -135,7 +135,7 @@ namespace svt
sal_Int32 /*_nOffset*/
) const override
{
- return NULL;
+ return nullptr;
}
virtual css::uno::Reference< css::accessibility::XAccessible >
@@ -147,7 +147,7 @@ namespace svt
AccessibleBrowseBoxObjType /*_eObjType*/
) const override
{
- return NULL;
+ return nullptr;
}
virtual css::uno::Reference< css::accessibility::XAccessible >
@@ -161,7 +161,7 @@ namespace svt
bool /*_bIsTriState*/
) const override
{
- return NULL;
+ return nullptr;
}
virtual css::uno::Reference< css::accessibility::XAccessible >
@@ -174,7 +174,7 @@ namespace svt
sal_uInt16 /*_nColPos*/
) const override
{
- return NULL;
+ return nullptr;
}
virtual css::uno::Reference< css::accessibility::XAccessibleContext >
@@ -183,7 +183,7 @@ namespace svt
::svt::ToolPanelDeck& /*i_rPanelDeck*/
) override
{
- return NULL;
+ return nullptr;
}
virtual css::uno::Reference< css::accessibility::XAccessibleContext >
createAccessibleToolPanelTabBar(
@@ -192,7 +192,7 @@ namespace svt
::svt::PanelTabBar& /*i_rTabBar*/
) override
{
- return NULL;
+ return nullptr;
}
};
@@ -239,7 +239,7 @@ namespace svt
#ifndef DISABLE_DYNLOADING
const OUString sModuleName( SVLIBRARY( "acc" ));
s_hAccessibleImplementationModule = osl_loadModuleRelative( &thisModule, sModuleName.pData, 0 );
- if ( s_hAccessibleImplementationModule != NULL )
+ if ( s_hAccessibleImplementationModule != nullptr )
{
const OUString sFactoryCreationFunc( "getSvtAccessibilityComponentFactory" );
s_pAccessibleFactoryFunc = reinterpret_cast<GetSvtAccessibilityComponentFactory>(
diff --git a/svtools/source/misc/svtresid.cxx b/svtools/source/misc/svtresid.cxx
index ff3b965a5e34..24906fd8eef5 100644
--- a/svtools/source/misc/svtresid.cxx
+++ b/svtools/source/misc/svtresid.cxx
@@ -22,7 +22,7 @@
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
-static ResMgr* pMgr=NULL;
+static ResMgr* pMgr=nullptr;
namespace
{
diff --git a/svtools/source/misc/templatefoldercache.cxx b/svtools/source/misc/templatefoldercache.cxx
index 18652a333892..4487b12e5879 100644
--- a/svtools/source/misc/templatefoldercache.cxx
+++ b/svtools/source/misc/templatefoldercache.cxx
@@ -468,7 +468,7 @@ namespace svt
TemplateFolderCacheImpl::TemplateFolderCacheImpl( bool _bAutoStoreState )
- :m_pCacheStream ( NULL )
+ :m_pCacheStream ( nullptr )
,m_bNeedsUpdate ( true )
,m_bKnowState ( false )
,m_bValidCurrentState ( false )
@@ -773,7 +773,7 @@ namespace svt
if ( m_pCacheStream )
m_pCacheStream->SetStreamCharSet( RTL_TEXTENCODING_UTF8 );
- return NULL != m_pCacheStream;
+ return nullptr != m_pCacheStream;
}
diff --git a/svtools/source/misc/transfer.cxx b/svtools/source/misc/transfer.cxx
index 6f7a9bb2f23d..1d0bfb51b7d8 100644
--- a/svtools/source/misc/transfer.cxx
+++ b/svtools/source/misc/transfer.cxx
@@ -269,7 +269,7 @@ void SAL_CALL TransferableHelper::TerminateListener::notifyTermination( const Ev
TransferableHelper::TransferableHelper() :
mpFormats( new DataFlavorExVector ),
- mpObjDesc( NULL )
+ mpObjDesc( nullptr )
{
}
@@ -372,7 +372,7 @@ Any SAL_CALL TransferableHelper::getTransferData2( const DataFlavor& rFlavor, co
SvMemoryStream aDstStm( 65535, 65535 );
// taking wmf without file header
- if ( ConvertGDIMetaFileToWMF( aMtf, aDstStm, NULL, false ) )
+ if ( ConvertGDIMetaFileToWMF( aMtf, aDstStm, nullptr, false ) )
{
maAny <<= ( aSeq = Sequence< sal_Int8 >( static_cast< const sal_Int8* >( aDstStm.GetData() ),
aDstStm.Seek( STREAM_SEEK_TO_END ) ) );
@@ -1085,7 +1085,7 @@ void TransferableHelper::ClearSelection( vcl::Window *pWindow )
Reference< XClipboard > xSelection( pWindow->GetPrimarySelection() );
if( xSelection.is() )
- xSelection->setContents( NULL, NULL );
+ xSelection->setContents( nullptr, nullptr );
}
@@ -1135,7 +1135,7 @@ public:
inline bool isListening() const { return !isDisposed(); }
/// determines whether the instance is disposed
- inline bool isDisposed() const { return mpListener == NULL; }
+ inline bool isDisposed() const { return mpListener == nullptr; }
/// makes the instance non-functional
void dispose();
@@ -1154,7 +1154,7 @@ TransferableClipboardNotifier::TransferableClipboardNotifier( const Reference< X
mxNotifier->addClipboardListener( this );
else
// born dead
- mpListener = NULL;
+ mpListener = nullptr;
}
osl_atomic_decrement( &m_refCount );
}
@@ -1193,7 +1193,7 @@ void TransferableClipboardNotifier::dispose()
mxNotifier->removeClipboardListener( this );
mxNotifier.clear();
- mpListener = NULL;
+ mpListener = nullptr;
}
@@ -1206,7 +1206,7 @@ struct TransferableDataHelper_Impl
TransferableClipboardNotifier* mpClipboardListener;
TransferableDataHelper_Impl()
- :mpClipboardListener( NULL )
+ :mpClipboardListener( nullptr )
{
}
};
@@ -1252,7 +1252,7 @@ TransferableDataHelper& TransferableDataHelper::operator=( const TransferableDat
{
::osl::MutexGuard aGuard( mpImpl->maMutex );
- bool bWasClipboardListening = ( NULL != mpImpl->mpClipboardListener );
+ bool bWasClipboardListening = ( nullptr != mpImpl->mpClipboardListener );
if ( bWasClipboardListening )
StopClipboardListening();
@@ -1276,8 +1276,8 @@ TransferableDataHelper::~TransferableDataHelper()
StopClipboardListening( );
{
::osl::MutexGuard aGuard( mpImpl->maMutex );
- delete mpFormats, mpFormats = NULL;
- delete mpObjDesc, mpObjDesc = NULL;
+ delete mpFormats, mpFormats = nullptr;
+ delete mpObjDesc, mpObjDesc = nullptr;
}
delete mpImpl;
}
@@ -2191,7 +2191,7 @@ void TransferableDataHelper::StopClipboardListening( )
{
mpImpl->mpClipboardListener->dispose();
mpImpl->mpClipboardListener->release();
- mpImpl->mpClipboardListener = NULL;
+ mpImpl->mpClipboardListener = nullptr;
}
}
diff --git a/svtools/source/misc/transfer2.cxx b/svtools/source/misc/transfer2.cxx
index 5bafeccf10a1..f6fb07e0344e 100644
--- a/svtools/source/misc/transfer2.cxx
+++ b/svtools/source/misc/transfer2.cxx
@@ -109,7 +109,7 @@ void DragSourceHelper::StartDrag( sal_Int8, const Point& )
DropTargetHelper::DropTargetListener::DropTargetListener( DropTargetHelper& rDropTargetHelper ) :
mrParent( rDropTargetHelper ),
- mpLastDragOverEvent( NULL )
+ mpLastDragOverEvent( nullptr )
{
}
@@ -168,7 +168,7 @@ void SAL_CALL DropTargetHelper::DropTargetListener::drop( const DropTargetDropEv
if( mpLastDragOverEvent )
{
delete mpLastDragOverEvent;
- mpLastDragOverEvent = NULL;
+ mpLastDragOverEvent = nullptr;
}
}
catch( const css::uno::Exception& )
@@ -231,7 +231,7 @@ void SAL_CALL DropTargetHelper::DropTargetListener::dragExit( const DropTargetEv
mpLastDragOverEvent->mbLeaving = true;
mrParent.AcceptDrop( *mpLastDragOverEvent );
delete mpLastDragOverEvent;
- mpLastDragOverEvent = NULL;
+ mpLastDragOverEvent = nullptr;
}
mrParent.ImplEndDrag();
@@ -363,7 +363,7 @@ struct TransferDataContainer_Impl
Graphic* pGrf;
TransferDataContainer_Impl()
- : pBookmk( 0 ), pGrf( 0 )
+ : pBookmk( nullptr ), pGrf( nullptr )
{
}
@@ -572,7 +572,7 @@ void TransferDataContainer::CopyAny( SotClipboardFormatId nFmt,
bool TransferDataContainer::HasAnyData() const
{
return pImpl->aFmtList.begin() != pImpl->aFmtList.end() ||
- 0 != pImpl->pBookmk;
+ nullptr != pImpl->pBookmk;
}