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

New commits:
commit b224dadbca1c5a4906eb60b38bd60250a51d4730
Author: Jochen Nitschke <j.nitschke+loger...@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 <c...@libreoffice.org>
    Reviewed-by: Noel Grandin <noel.gran...@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();
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to