diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2016-01-04 10:27:40 +0900 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-01-06 13:34:42 +0000 |
commit | 4ae319ae462f3f094452046e392c8c15446736ae (patch) | |
tree | 660e754851853b6b7da02a4661ed4d9b1d0383b2 /starmath/inc | |
parent | b3afc03bcce7156f7ec5ee662776aee54eb0761f (diff) |
tdf#90341 Clean up excessive const_cast'ing
RequestApplyChanges()'s call sites do not require its constness.
Change-Id: Iaf9108375db7503fe1a3bd8275e13dbdddf95ab5
Reviewed-on: https://gerrit.libreoffice.org/21068
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'starmath/inc')
-rw-r--r-- | starmath/inc/format.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/inc/format.hxx b/starmath/inc/format.hxx index 15bdd5527134..dccdded3879c 100644 --- a/starmath/inc/format.hxx +++ b/starmath/inc/format.hxx @@ -147,9 +147,9 @@ public: bool operator == (const SmFormat &rFormat) const; inline bool operator != (const SmFormat &rFormat) const; - void RequestApplyChanges() const + void RequestApplyChanges() { - const_cast<SmFormat *>(this)->Broadcast(SfxSimpleHint(HINT_FORMATCHANGED)); + Broadcast(SfxSimpleHint(HINT_FORMATCHANGED)); } }; |