[Libreoffice-commits] core.git: vcl/source
Tor Lillqvist
tml at collabora.com
Wed May 6 02:47:03 PDT 2015
vcl/source/window/toolbox2.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 1fe85984f00c38017095944e2c34b34c57622367
Author: Tor Lillqvist <tml at collabora.com>
Date: Wed May 6 12:44:16 2015 +0300
WaE: loplugin:cstylecast
Change-Id: Id59ba5f0fcb27e5a3fec322ba0a016c5fc4bacc1
diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx
index 13e77ef..211afd3 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() )
More information about the Libreoffice-commits
mailing list