diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-04 08:53:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-04 10:52:41 +0200 |
commit | 7aa7f4d9e4294959748bccf9e763154740251635 (patch) | |
tree | 79fc3855ce0cc1141abdda514df374cd42ab259c /starmath/source/edit.cxx | |
parent | 6f511a5de909b2fb6cb42b851e0cc90f54fbdd59 (diff) |
loplugin:unnecessaryparen include c++ casts
Change-Id: I132d3c66f0562e2c37a02eaf4c168d06c2b473eb
Reviewed-on: https://gerrit.libreoffice.org/41874
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath/source/edit.cxx')
-rw-r--r-- | starmath/source/edit.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx index 92abbe35f997..fb715793531b 100644 --- a/starmath/source/edit.cxx +++ b/starmath/source/edit.cxx @@ -692,7 +692,7 @@ void SmEditWindow::LoseFocus() bool SmEditWindow::IsAllSelected() const { bool bRes = false; - EditEngine *pEditEngine = (const_cast<SmEditWindow *>(this))->GetEditEngine(); + EditEngine *pEditEngine = const_cast<SmEditWindow *>(this)->GetEditEngine(); OSL_ENSURE( pEditView, "NULL pointer" ); OSL_ENSURE( pEditEngine, "NULL pointer" ); if (pEditEngine && pEditView) @@ -832,7 +832,7 @@ void SmEditWindow::SetSelection(const ESelection &rSel) bool SmEditWindow::IsEmpty() const { - EditEngine *pEditEngine = (const_cast<SmEditWindow *>(this))->GetEditEngine(); + EditEngine *pEditEngine = const_cast<SmEditWindow *>(this)->GetEditEngine(); bool bEmpty = ( pEditEngine && pEditEngine->GetTextLen() == 0 ); return bEmpty; } |