summaryrefslogtreecommitdiff
path: root/sd/source/ui/func/fuhhconv.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:23:02 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:38 +0100
commit92c697c0e3e4bde88424322875c993c161696b1e (patch)
treeea1be62a0cb8fd7f7e63dd03a52441cedd8e96eb /sd/source/ui/func/fuhhconv.cxx
parent65464ed0985802edb96dbcbd1c3eed996f3778bd (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: If1b80da64ba575f07b31dce9bc0e34b7eb9f11a4
Diffstat (limited to 'sd/source/ui/func/fuhhconv.cxx')
-rw-r--r--sd/source/ui/func/fuhhconv.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sd/source/ui/func/fuhhconv.cxx b/sd/source/ui/func/fuhhconv.cxx
index 6b7a259d0209..30215376371d 100644
--- a/sd/source/ui/func/fuhhconv.cxx
+++ b/sd/source/ui/func/fuhhconv.cxx
@@ -60,7 +60,7 @@ FuHangulHanjaConversion::FuHangulHanjaConversion (
SdDrawDocument* pDocument,
SfxRequest& rReq )
: FuPoor(pViewSh, pWin, pView, pDocument, rReq),
- pSdOutliner(NULL),
+ pSdOutliner(nullptr),
bOwnOutliner(false)
{
if ( dynamic_cast< const DrawViewShell *>( mpViewShell ) != nullptr )
@@ -103,7 +103,7 @@ void FuHangulHanjaConversion::StartConversion( sal_Int16 nSourceLanguage, sal_In
mpView->BegUndo(SD_RESSTR(STR_UNDO_HANGULHANJACONVERSION));
ViewShellBase* pBase = dynamic_cast<ViewShellBase*>( SfxViewShell::Current() );
- if (pBase != NULL)
+ if (pBase != nullptr)
mpViewShell = pBase->GetMainViewShell().get();
if( mpViewShell )
@@ -132,19 +132,19 @@ void FuHangulHanjaConversion::StartConversion( sal_Int16 nSourceLanguage, sal_In
// Due to changing between edit mode, notes mode, and handout mode the
// view has most likely changed. Get the new one.
- mpViewShell = pBase ? pBase->GetMainViewShell().get() : NULL;
- if (mpViewShell != NULL)
+ mpViewShell = pBase ? pBase->GetMainViewShell().get() : nullptr;
+ if (mpViewShell != nullptr)
{
mpView = mpViewShell->GetView();
mpWindow = mpViewShell->GetActiveWindow();
}
else
{
- mpView = 0;
- mpWindow = NULL;
+ mpView = nullptr;
+ mpWindow = nullptr;
}
- if (mpView != NULL)
+ if (mpView != nullptr)
mpView->EndUndo();
}
@@ -203,7 +203,7 @@ void FuHangulHanjaConversion::StartChineseConversion()
if( xInit.is() )
{
// initialize dialog
- Reference< awt::XWindow > xDialogParentWindow(0);
+ Reference< awt::XWindow > xDialogParentWindow(nullptr);
Sequence<Any> aSeq(1);
Any* pArray = aSeq.getArray();
PropertyValue aParam;