diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-02 15:06:23 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-02 20:40:04 +0200 |
commit | 8cbafb908d5150aec9d4047ea06c5c5bc1854e8d (patch) | |
tree | 78c438ca71326937a3a8374ff74f0959e89af6c9 /svx | |
parent | e015ce45c299bec5d4a571e127ca7422caea523b (diff) |
loplugin:constmethod in editeng
Change-Id: I07e22d880940ea6df928565942dac268f4b94fea
Reviewed-on: https://gerrit.libreoffice.org/78399
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/unodraw/unoshtxt.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/unodraw/unoshtxt.cxx b/svx/source/unodraw/unoshtxt.cxx index 0e8acc23db42..64e13012ac86 100644 --- a/svx/source/unodraw/unoshtxt.cxx +++ b/svx/source/unodraw/unoshtxt.cxx @@ -504,7 +504,7 @@ SvxTextForwarder* SvxTextEditSourceImpl::GetBackgroundTextForwarder() if( mbIsLocked ) { const_cast<EditEngine*>(&(mpOutliner->GetEditEngine()))->SetUpdateMode( false ); - mbOldUndoMode = const_cast<EditEngine*>(&(mpOutliner->GetEditEngine()))->IsUndoEnabled(); + mbOldUndoMode = mpOutliner->GetEditEngine().IsUndoEnabled(); const_cast<EditEngine*>(&(mpOutliner->GetEditEngine()))->EnableUndo( false ); } @@ -809,7 +809,7 @@ void SvxTextEditSourceImpl::lock() if( mpOutliner ) { const_cast<EditEngine*>(&(mpOutliner->GetEditEngine()))->SetUpdateMode( false ); - mbOldUndoMode = const_cast<EditEngine*>(&(mpOutliner->GetEditEngine()))->IsUndoEnabled(); + mbOldUndoMode = mpOutliner->GetEditEngine().IsUndoEnabled(); const_cast<EditEngine*>(&(mpOutliner->GetEditEngine()))->EnableUndo( false ); } } |