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

Jochen Nitschke j.nitschke+logerrit at ok.de
Fri Mar 17 19:14:52 UTC 2017


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

New commits:
commit b224dadbca1c5a4906eb60b38bd60250a51d4730
Author: Jochen Nitschke <j.nitschke+logerrit at ok.de>
Date:   Fri Mar 17 15:17:00 2017 +0100

    drop upcasts
    
    Change-Id: I188cac932d34472c4e0adbc7fc31ff9f6f9e4898
    Reviewed-on: https://gerrit.libreoffice.org/35339
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx
index 6b0d0c3e9321..57c8cf584580 100644
--- a/sw/inc/doc.hxx
+++ b/sw/inc/doc.hxx
@@ -791,7 +791,7 @@ public:
     void       DelCharFormat(size_t nFormat, bool bBroadcast = false);
     void       DelCharFormat(SwCharFormat* pFormat, bool bBroadcast = false);
     SwCharFormat* FindCharFormatByName( const OUString& rName ) const
-        {   return static_cast<SwCharFormat*>(FindFormatByName( (SwFormatsBase&)*mpCharFormatTable, rName )); }
+        {   return static_cast<SwCharFormat*>(FindFormatByName( *mpCharFormatTable, rName )); }
 
     // Formatcollections (styles)
     // TXT
@@ -819,7 +819,7 @@ public:
                        const bool bReset = true,
                        const bool bResetListAttrs = false);
     SwTextFormatColl* FindTextFormatCollByName( const OUString& rName ) const
-        {   return static_cast<SwTextFormatColl*>(FindFormatByName( (SwFormatsBase&)*mpTextFormatCollTable, rName )); }
+        {   return static_cast<SwTextFormatColl*>(FindFormatByName( *mpTextFormatCollTable, rName )); }
 
     void ChkCondColls();
 


More information about the Libreoffice-commits mailing list