diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:15:45 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:26 +0100 |
commit | 11d365241808405483b79efd7879fa04bee8945e (patch) | |
tree | fae079e798f502f1766fa11a9db0b75fd5c44533 /forms/source/richtext/richtextcontrol.cxx | |
parent | 3cdda9af2c12a9ae2a1f0bdf8ca898f1f5c69bfb (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: Ic67c3138ca66c6b6d6fcf76b09d4581e23f51f8d
Diffstat (limited to 'forms/source/richtext/richtextcontrol.cxx')
-rw-r--r-- | forms/source/richtext/richtextcontrol.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/forms/source/richtext/richtextcontrol.cxx b/forms/source/richtext/richtextcontrol.cxx index 1dc7d24dcc45..b3830c583a33 100644 --- a/forms/source/richtext/richtextcontrol.cxx +++ b/forms/source/richtext/richtextcontrol.cxx @@ -170,7 +170,7 @@ namespace frm mbCreatingPeer = true; // determine the VLC window for the parent - vcl::Window* pParentWin = NULL; + vcl::Window* pParentWin = nullptr; if ( _rParentPeer.is() ) { VCLXWindow* pParentXWin = VCLXWindow::GetImplementation( _rParentPeer ); @@ -277,7 +277,7 @@ namespace frm RichTextEngine* pEngine = ORichTextModel::getEditEngine( _rxModel ); OSL_ENSURE( pEngine, "ORichTextPeer::Create: could not obtaine the edit engine from the model!" ); if ( !pEngine ) - return NULL; + return nullptr; // the peer itself ORichTextPeer* pPeer = new ORichTextPeer; @@ -339,7 +339,7 @@ namespace frm return; OutputDevice* pTargetDevice = VCLUnoHelper::GetOutputDevice( getGraphics() ); - OSL_ENSURE( pTargetDevice != NULL, "ORichTextPeer::draw: no graphics -> no drawing!" ); + OSL_ENSURE( pTargetDevice != nullptr, "ORichTextPeer::draw: no graphics -> no drawing!" ); if ( !pTargetDevice ) return; @@ -468,10 +468,10 @@ namespace frm VclPtr< RichTextControl > pRichTextControl = GetAs< RichTextControl >(); OSL_PRECOND( pRichTextControl, "ORichTextPeer::implCreateDispatcher: invalid window!" ); if ( !pRichTextControl ) - return SingleAttributeDispatcher( NULL ); + return SingleAttributeDispatcher( nullptr ); - ORichTextFeatureDispatcher* pDispatcher = NULL; - OAttributeDispatcher* pAttributeDispatcher = NULL; + ORichTextFeatureDispatcher* pDispatcher = nullptr; + OAttributeDispatcher* pAttributeDispatcher = nullptr; switch ( _nSlotId ) { case SID_CUT: @@ -550,7 +550,7 @@ namespace frm { SfxSlotPool& rSlotPool = SfxSlotPool::GetSlotPool(); const SfxSlot* pSlot = rSlotPool.GetSlot( _nSlotId ); - const SfxType* pType = pSlot ? pSlot->GetType() : NULL; + const SfxType* pType = pSlot ? pSlot->GetType() : nullptr; if ( pType ) { bNeedParametrizedDispatcher = ( pType->nAttribs > 0 ); |