summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2015-05-06 12:44:16 +0300
committerTor Lillqvist <tml@collabora.com>2015-05-06 12:46:37 +0300
commit1fe85984f00c38017095944e2c34b34c57622367 (patch)
tree20d2d5c2ba66e49dbb58476ec2a6ecda99bddde0 /vcl
parent222a9ef69c1a60526de5546433a9fce62d44823a (diff)
WaE: loplugin:cstylecast
Change-Id: Id59ba5f0fcb27e5a3fec322ba0a016c5fc4bacc1
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/toolbox2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx
index 13e77ef69eff..211afd36f3b7 100644
--- a/vcl/source/window/toolbox2.cxx
+++ b/vcl/source/window/toolbox2.cxx
@@ -938,7 +938,7 @@ sal_uInt16 ToolBox::GetItemId( const Point& rPos ) const
Size ToolBox::GetItemContentSize( sal_uInt16 nItemId ) const
{
if ( mbCalc || mbFormat )
- ((ToolBox*)this)->ImplFormat();
+ (const_cast<ToolBox*>(this))->ImplFormat();
sal_uInt16 nPos = GetItemPos( nItemId );
if ( nPos < mpData->m_aItems.size() )