summaryrefslogtreecommitdiff
path: root/starmath/source/edit.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:24:24 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:41 +0100
commit374b4f349f1d1cb3b33004580ebc903d206f28ff (patch)
treeb26a69ad1287dc10f691cbb01504a0ba671dc591 /starmath/source/edit.cxx
parente246e5e3cf2722beb8a633259c0c395b498f58c6 (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: Ife1eef04d905f12308b64b971176c2f045a1b268
Diffstat (limited to 'starmath/source/edit.cxx')
-rw-r--r--starmath/source/edit.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx
index 70e976bdd9aa..26ab3433b54c 100644
--- a/starmath/source/edit.cxx
+++ b/starmath/source/edit.cxx
@@ -177,7 +177,7 @@ SmViewShell * SmEditWindow::GetView()
SmDocShell * SmEditWindow::GetDoc()
{
SmViewShell *pView = rCmdBox.GetView();
- return pView ? pView->GetDoc() : 0;
+ return pView ? pView->GetDoc() : nullptr;
}
EditView * SmEditWindow::GetEditView()
@@ -187,7 +187,7 @@ EditView * SmEditWindow::GetEditView()
EditEngine * SmEditWindow::GetEditEngine()
{
- EditEngine *pEditEng = 0;
+ EditEngine *pEditEng = nullptr;
if (pEditView)
pEditEng = pEditView->GetEditEngine();
else
@@ -203,7 +203,7 @@ EditEngine * SmEditWindow::GetEditEngine()
SfxItemPool * SmEditWindow::GetEditEngineItemPool()
{
SmDocShell *pDoc = GetDoc();
- return pDoc ? &pDoc->GetEditEngineItemPool() : 0;
+ return pDoc ? &pDoc->GetEditEngineItemPool() : nullptr;
}
void SmEditWindow::ApplyColorConfigValues( const svtools::ColorConfig &rColorCfg )
@@ -347,7 +347,7 @@ void SmEditWindow::Command(const CommandEvent& rCEvt)
std::unique_ptr<PopupMenu> xPopupMenu(new PopupMenu(SmResId(RID_COMMANDMENU)));
// added for replaceability of context menus
- Menu* pMenu = NULL;
+ Menu* pMenu = nullptr;
css::ui::ContextMenuExecuteEvent aEvent;
aEvent.SourceWindow = VCLUnoHelper::GetInterface( this );
aEvent.ExecutePosition.X = aPoint.X();