diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2017-03-17 15:17:00 +0100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-17 19:14:31 +0000 |
commit | b224dadbca1c5a4906eb60b38bd60250a51d4730 (patch) | |
tree | 8f0482f11b098209616028143f1b6ed71650e307 | |
parent | ede71324a2062ea11619c2b2e85b61f766731999 (diff) |
drop upcasts
Change-Id: I188cac932d34472c4e0adbc7fc31ff9f6f9e4898
Reviewed-on: https://gerrit.libreoffice.org/35339
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | sw/inc/doc.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
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(); |