summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-06-02 09:37:35 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-06-02 09:37:35 +0200
commit9b80567859754a49f23ae701ec59eb36820fd1a3 (patch)
tree3f0c9c1d647c462b789478de20a1d7cd78185275
parent2b9556b3e44e5cbccfeea69cbace8bef255282f1 (diff)
Improved loplugin:redundantcast static_cast handling: editeng
Change-Id: Ia7541038df7c9eca00f99d70e5a1fc817028f686
-rw-r--r--editeng/source/editeng/eertfpar.cxx4
-rw-r--r--include/editeng/txtrange.hxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/editeng/source/editeng/eertfpar.cxx b/editeng/source/editeng/eertfpar.cxx
index 96aac57b553d..6f93d8bf6280 100644
--- a/editeng/source/editeng/eertfpar.cxx
+++ b/editeng/source/editeng/eertfpar.cxx
@@ -310,8 +310,8 @@ bool EditRTFParser::IsEndPara( EditNodeIdx* pNd, sal_Int32 nCnt ) const
void EditRTFParser::SetAttrInDoc( SvxRTFItemStackType &rSet )
{
- ContentNode* pSttNode = const_cast<EditNodeIdx&>(static_cast<const EditNodeIdx&>(rSet.GetSttNode())).GetNode();
- ContentNode* pEndNode = const_cast<EditNodeIdx&>(static_cast<const EditNodeIdx&>(rSet.GetEndNode())).GetNode();
+ ContentNode* pSttNode = const_cast<EditNodeIdx&>(rSet.GetSttNode()).GetNode();
+ ContentNode* pEndNode = const_cast<EditNodeIdx&>(rSet.GetEndNode()).GetNode();
EditPaM aStartPaM( pSttNode, rSet.GetSttCnt() );
EditPaM aEndPaM( pEndNode, rSet.GetEndCnt() );
diff --git a/include/editeng/txtrange.hxx b/include/editeng/txtrange.hxx
index db510d319b1b..3c857ad0e90f 100644
--- a/include/editeng/txtrange.hxx
+++ b/include/editeng/txtrange.hxx
@@ -75,7 +75,7 @@ public:
bool IsInner() const { return bInner; }
bool IsVertical() const { return bVertical; }
const tools::Rectangle& GetBoundRect()
- { return pBound ? static_cast< const tools::Rectangle& >(*pBound) : GetBoundRect_(); }
+ { return pBound ? const_cast< const tools::Rectangle& >(*pBound) : GetBoundRect_(); }
void SetUpper( sal_uInt16 nNew ){ nUpper = nNew; }
void SetLower( sal_uInt16 nNew ){ nLower = nNew; }
void SetVertical( bool bNew );