From 9b80567859754a49f23ae701ec59eb36820fd1a3 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 2 Jun 2017 09:37:35 +0200 Subject: Improved loplugin:redundantcast static_cast handling: editeng Change-Id: Ia7541038df7c9eca00f99d70e5a1fc817028f686 --- include/editeng/txtrange.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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 ); -- cgit