[Libreoffice-commits] core.git: starmath/inc

Takeshi Abe tabe at fixedpoint.jp
Wed Jan 6 05:35:03 PST 2016


 starmath/inc/format.hxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 4ae319ae462f3f094452046e392c8c15446736ae
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Mon Jan 4 10:27:40 2016 +0900

    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 at libreoffice.org>
    Reviewed-by: Michael Stahl <mstahl at redhat.com>

diff --git a/starmath/inc/format.hxx b/starmath/inc/format.hxx
index 15bdd55..dccdded 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));
     }
 
 };


More information about the Libreoffice-commits mailing list