Kaydet (Commit) 00bd4571 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin: cstylecast

Change-Id: I20358c271e32b4af11d3258c950bde836596933a
üst 65b69c44
......@@ -112,10 +112,10 @@ IMPL_LINK( VCLXAccessibleComponent, WindowEventListener, VclSimpleEvent*, pEvent
*/
if ( pEvent && pEvent->ISA( VclWindowEvent ) && mxWindow.is() /* #122218# */ && (pEvent->GetId() != VCLEVENT_WINDOW_ENDPOPUPMODE) )
{
DBG_ASSERT( ((VclWindowEvent*)pEvent)->GetWindow(), "Window???" );
if( !((VclWindowEvent*)pEvent)->GetWindow()->IsAccessibilityEventsSuppressed() || ( pEvent->GetId() == VCLEVENT_OBJECT_DYING ) )
DBG_ASSERT( static_cast<VclWindowEvent*>(pEvent)->GetWindow(), "Window???" );
if( !static_cast<VclWindowEvent*>(pEvent)->GetWindow()->IsAccessibilityEventsSuppressed() || ( pEvent->GetId() == VCLEVENT_OBJECT_DYING ) )
{
ProcessWindowEvent( *(VclWindowEvent*)pEvent );
ProcessWindowEvent( *static_cast<VclWindowEvent*>(pEvent) );
}
}
return 0;
......@@ -126,13 +126,13 @@ IMPL_LINK( VCLXAccessibleComponent, WindowChildEventListener, VclSimpleEvent*, p
DBG_ASSERT( pEvent && pEvent->ISA( VclWindowEvent ), "Unknown WindowEvent!" );
if ( pEvent && pEvent->ISA( VclWindowEvent ) && mxWindow.is() /* #i68079# */ )
{
DBG_ASSERT( ((VclWindowEvent*)pEvent)->GetWindow(), "Window???" );
if( !((VclWindowEvent*)pEvent)->GetWindow()->IsAccessibilityEventsSuppressed() )
DBG_ASSERT( static_cast<VclWindowEvent*>(pEvent)->GetWindow(), "Window???" );
if( !static_cast<VclWindowEvent*>(pEvent)->GetWindow()->IsAccessibilityEventsSuppressed() )
{
// #103087# to prevent an early release of the component
uno::Reference< accessibility::XAccessibleContext > xTmp = this;
ProcessWindowChildEvent( *(VclWindowEvent*)pEvent );
ProcessWindowChildEvent( *static_cast<VclWindowEvent*>(pEvent) );
}
}
return 0;
......@@ -442,7 +442,7 @@ void VCLXAccessibleComponent::FillAccessibleStateSet( utl::AccessibleStateSetHel
if( pWindow && pWindow->GetType() == WINDOW_COMBOBOX )
{
if( !( pWindow->GetStyle() & WB_READONLY) ||
!((Edit*)pWindow)->IsReadOnly() )
!static_cast<Edit*>(pWindow)->IsReadOnly() )
rStateSet.AddState( accessibility::AccessibleStateType::EDITABLE );
}
......@@ -454,14 +454,14 @@ void VCLXAccessibleComponent::FillAccessibleStateSet( utl::AccessibleStateSetHel
if( pWinTemp && pWinTemp->GetType() == WINDOW_EDIT )
{
if( !( pWinTemp->GetStyle() & WB_READONLY) ||
!((Edit*)pWinTemp)->IsReadOnly() )
!static_cast<Edit*>(pWinTemp)->IsReadOnly() )
rStateSet.AddState( accessibility::AccessibleStateType::EDITABLE );
break;
}
if( pChild->GetType() == WINDOW_EDIT )
{
if( !( pChild->GetStyle() & WB_READONLY) ||
!((Edit*)pChild)->IsReadOnly())
!static_cast<Edit*>(pChild)->IsReadOnly())
rStateSet.AddState( accessibility::AccessibleStateType::EDITABLE );
break;
}
......
......@@ -128,14 +128,14 @@ IMPL_XTYPEPROVIDER_END
OutDevType eDevType = mpOutputDevice->GetOutDevType();
if ( eDevType == OUTDEV_WINDOW )
{
aDevSz = ((vcl::Window*)mpOutputDevice)->GetSizePixel();
((vcl::Window*)mpOutputDevice)->GetBorder( aInfo.LeftInset, aInfo.TopInset, aInfo.RightInset, aInfo.BottomInset );
aDevSz = static_cast<vcl::Window*>(mpOutputDevice)->GetSizePixel();
static_cast<vcl::Window*>(mpOutputDevice)->GetBorder( aInfo.LeftInset, aInfo.TopInset, aInfo.RightInset, aInfo.BottomInset );
}
else if ( eDevType == OUTDEV_PRINTER )
{
aDevSz = ((Printer*)mpOutputDevice)->GetPaperSizePixel();
aDevSz = static_cast<Printer*>(mpOutputDevice)->GetPaperSizePixel();
Size aOutSz = mpOutputDevice->GetOutputSizePixel();
Point aOffset = ((Printer*)mpOutputDevice)->GetPageOffset();
Point aOffset = static_cast<Printer*>(mpOutputDevice)->GetPageOffset();
aInfo.LeftInset = aOffset.X();
aInfo.TopInset = aOffset.Y();
aInfo.RightInset = aDevSz.Width() - aOutSz.Width() - aOffset.X();
......
......@@ -83,9 +83,9 @@ IMPL_LINK( VCLXMenu, MenuEventListener, VclSimpleEvent*, pEvent )
DBG_ASSERT( pEvent && pEvent->ISA( VclMenuEvent ), "Unknown Event!" );
if ( pEvent && pEvent->ISA( VclMenuEvent ) )
{
DBG_ASSERT( ((VclMenuEvent*)pEvent)->GetMenu() && mpMenu, "Menu???" );
DBG_ASSERT( static_cast<VclMenuEvent*>(pEvent)->GetMenu() && mpMenu, "Menu???" );
VclMenuEvent* pMenuEvent = (VclMenuEvent*)pEvent;
VclMenuEvent* pMenuEvent = static_cast<VclMenuEvent*>(pEvent);
if ( pMenuEvent->GetMenu() == mpMenu ) // Also called for the root menu
{
switch ( pMenuEvent->GetId() )
......@@ -434,7 +434,7 @@ throw(css::uno::RuntimeException, std::exception)
*pNewRef = rxPopupMenu;
maPopupMenuRefs.push_back( pNewRef );
mpMenu->SetPopupMenu( nItemId, (PopupMenu*) pVCLMenu->GetMenu() );
mpMenu->SetPopupMenu( nItemId, static_cast<PopupMenu*>( pVCLMenu->GetMenu() ) );
}
}
......@@ -452,7 +452,7 @@ throw(css::uno::RuntimeException, std::exception)
for ( size_t n = maPopupMenuRefs.size(); n; )
{
css::uno::Reference< css::awt::XPopupMenu > * pRef = maPopupMenuRefs[ --n ];
Menu* pM = ((VCLXMenu*)pRef->get())->GetMenu();
Menu* pM = static_cast<VCLXMenu*>(pRef->get())->GetMenu();
if ( pM == pMenu )
{
aRef = *pRef;
......@@ -463,7 +463,7 @@ throw(css::uno::RuntimeException, std::exception)
// if the popup men is not created by stardiv.Toolkit.VCLXPopupMenu
if( !aRef.is() )
{
aRef = new VCLXPopupMenu( (PopupMenu*)pMenu );
aRef = new VCLXPopupMenu( static_cast<PopupMenu*>(pMenu) );
}
}
return aRef;
......@@ -535,7 +535,7 @@ throw(css::uno::RuntimeException, std::exception)
sal_Int16 nRet = 0;
if ( mpMenu && IsPopupMenu() )
{
nRet = ((PopupMenu*)mpMenu)->Execute( VCLUnoHelper::GetWindow( rxWindowPeer ),
nRet = static_cast<PopupMenu*>(mpMenu)->Execute( VCLUnoHelper::GetWindow( rxWindowPeer ),
VCLRectangle( rPos ),
nFlags | POPUPMENU_NOMOUSEUPCLOSE );
}
......@@ -735,7 +735,7 @@ throw (css::uno::RuntimeException, std::exception)
::osl::Guard< ::osl::Mutex > aGuard( GetMutex() );
if ( mpMenu && IsPopupMenu() )
( (PopupMenu*) mpMenu )->EndExecute();
static_cast<PopupMenu*>( mpMenu )->EndExecute();
}
......
......@@ -71,18 +71,18 @@ IMPL_XTYPEPROVIDER_END
vcl::Window* pWindow = GetWindow();
if ( pWindow )
{
const SystemEnvData* pSysData = ((SystemChildWindow *)pWindow)->GetSystemData();
const SystemEnvData* pSysData = static_cast<SystemChildWindow *>(pWindow)->GetSystemData();
if( pSysData )
{
#if (defined WNT)
if( SystemType == ::com::sun::star::lang::SystemDependent::SYSTEM_WIN32 )
{
aRet <<= (sal_IntPtr)pSysData->hWnd;
aRet <<= reinterpret_cast<sal_IntPtr>(pSysData->hWnd);
}
#elif (defined MACOSX)
if( SystemType == ::com::sun::star::lang::SystemDependent::SYSTEM_MAC )
{
aRet <<= (sal_IntPtr)pSysData->mpNSView;
aRet <<= reinterpret_cast<sal_IntPtr>(pSysData->mpNSView);
}
#elif (defined ANDROID)
// Nothing
......
......@@ -57,7 +57,7 @@ VCLXTabPageContainer::~VCLXTabPageContainer()
void SAL_CALL VCLXTabPageContainer::draw( sal_Int32 nX, sal_Int32 nY ) throw(RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
TabControl* pTabControl = (TabControl*)GetWindow();
TabControl* pTabControl = static_cast<TabControl*>(GetWindow());
if ( pTabControl )
{
TabPage *pTabPage = pTabControl->GetTabPage( sal::static_int_cast< sal_uInt16 >( pTabControl->GetCurPageId( ) ) );
......@@ -87,7 +87,7 @@ void SAL_CALL VCLXTabPageContainer::setProperty(const OUString& PropertyName,
{
SolarMutexGuard aGuard;
TabControl* pTabPage = (TabControl*)GetWindow();
TabControl* pTabPage = static_cast<TabControl*>(GetWindow());
if ( pTabPage )
{
VCLXWindow::setProperty( PropertyName, Value );
......@@ -95,18 +95,18 @@ void SAL_CALL VCLXTabPageContainer::setProperty(const OUString& PropertyName,
}
::sal_Int16 SAL_CALL VCLXTabPageContainer::getActiveTabPageID() throw (RuntimeException, std::exception)
{
TabControl* pTabCtrl = (TabControl*)GetWindow();
TabControl* pTabCtrl = static_cast<TabControl*>(GetWindow());
return pTabCtrl != NULL ? pTabCtrl->GetCurPageId( ) : 0;
}
void SAL_CALL VCLXTabPageContainer::setActiveTabPageID( ::sal_Int16 _activetabpageid ) throw (RuntimeException, std::exception)
{
TabControl* pTabCtrl = (TabControl*)GetWindow();
TabControl* pTabCtrl = static_cast<TabControl*>(GetWindow());
if ( pTabCtrl )
pTabCtrl->SelectTabPage(_activetabpageid);
}
::sal_Int16 SAL_CALL VCLXTabPageContainer::getTabPageCount( ) throw (RuntimeException, std::exception)
{
TabControl* pTabCtrl = (TabControl*)GetWindow();
TabControl* pTabCtrl = static_cast<TabControl*>(GetWindow());
return pTabCtrl != NULL ? pTabCtrl->GetPageCount() : 0;
}
sal_Bool SAL_CALL VCLXTabPageContainer::isTabPageActive( ::sal_Int16 tabPageIndex ) throw (RuntimeException, std::exception)
......@@ -154,7 +154,7 @@ void VCLXTabPageContainer::ProcessWindowEvent( const VclWindowEvent& _rVclWindow
{
case VCLEVENT_TABPAGE_ACTIVATE:
{
sal_uLong page = (sal_uLong)_rVclWindowEvent.GetData();
sal_uLong page = reinterpret_cast<sal_uLong>(_rVclWindowEvent.GetData());
awt::tab::TabPageActivatedEvent aEvent(NULL,page);
m_aTabPageListeners.tabPageActivated(aEvent);
break;
......@@ -172,7 +172,7 @@ void SAL_CALL VCLXTabPageContainer::disposing( const ::com::sun::star::lang::Eve
void SAL_CALL VCLXTabPageContainer::elementInserted( const ::com::sun::star::container::ContainerEvent& Event ) throw (::com::sun::star::uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
TabControl* pTabCtrl = (TabControl*)GetWindow();
TabControl* pTabCtrl = static_cast<TabControl*>(GetWindow());
Reference< ::com::sun::star::awt::tab::XTabPage > xTabPage(Event.Element,uno::UNO_QUERY);
if ( pTabCtrl && xTabPage.is() )
{
......@@ -181,7 +181,7 @@ void SAL_CALL VCLXTabPageContainer::elementInserted( const ::com::sun::star::con
sal_Int16 nPageID = xP->getTabPageID();
vcl::Window* pWindow = VCLUnoHelper::GetWindow(xControl->getPeer());
TabPage* pPage = (TabPage*)pWindow;
TabPage* pPage = static_cast<TabPage*>(pWindow);
pTabCtrl->InsertPage(nPageID,pPage->GetText());
pPage->Hide();
......@@ -196,7 +196,7 @@ void SAL_CALL VCLXTabPageContainer::elementInserted( const ::com::sun::star::con
void SAL_CALL VCLXTabPageContainer::elementRemoved( const ::com::sun::star::container::ContainerEvent& Event ) throw (::com::sun::star::uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
TabControl* pTabCtrl = (TabControl*)GetWindow();
TabControl* pTabCtrl = static_cast<TabControl*>(GetWindow());
Reference< ::com::sun::star::awt::tab::XTabPage > xTabPage(Event.Element,uno::UNO_QUERY);
if ( pTabCtrl && xTabPage.is() )
{
......
......@@ -746,7 +746,9 @@ void SAL_CALL VCLXToolkit::disposing()
ByteBufferWrapper *bbw = (ByteBufferWrapper *) (intptr_t) addressOfMemoryBufferForSharedArrayWrapper;
pV->SetOutputSizePixelScaleOffsetAndBuffer( Size( Width, Height ), Fraction(ScaleNumerator, ScaleDenominator), Point( XOffset, YOffset), basebmp::RawMemorySharedArray( bbw->pointer(), *bbw ));
#else
pV->SetOutputSizePixelScaleOffsetAndBuffer( Size( Width, Height ), Fraction(ScaleNumerator, ScaleDenominator), Point( XOffset, YOffset), basebmp::RawMemorySharedArray( (sal_uInt8*) (sal_uIntPtr) addressOfMemoryBufferForSharedArrayWrapper ));
pV->SetOutputSizePixelScaleOffsetAndBuffer( Size( Width, Height ),
Fraction(ScaleNumerator, ScaleDenominator), Point( XOffset, YOffset),
basebmp::RawMemorySharedArray( reinterpret_cast<sal_uInt8*>( addressOfMemoryBufferForSharedArrayWrapper )));
#endif
} else {
pV->SetOutputSizePixel( Size( Width, Height ) );
......@@ -827,7 +829,7 @@ vcl::Window* VCLXToolkit::ImplCreateWindow( VCLXWindow** ppNewComp,
break;
case WINDOW_COMBOBOX:
pNewWindow = new ComboBox( pParent, nWinBits|WB_AUTOHSCROLL );
((ComboBox*)pNewWindow)->EnableAutoSize( false );
static_cast<ComboBox*>(pNewWindow)->EnableAutoSize( false );
*ppNewComp = new VCLXComboBox;
break;
case WINDOW_CURRENCYBOX:
......@@ -837,7 +839,7 @@ vcl::Window* VCLXToolkit::ImplCreateWindow( VCLXWindow** ppNewComp,
pNewWindow = new CurrencyField( pParent, nWinBits );
static_cast<CurrencyField*>(pNewWindow)->EnableEmptyFieldValue( true );
*ppNewComp = new VCLXNumericField;
((VCLXFormattedSpinField*)*ppNewComp)->SetFormatter( (FormatterBase*)(CurrencyField*)pNewWindow );
static_cast<VCLXFormattedSpinField*>(*ppNewComp)->SetFormatter( (FormatterBase*)static_cast<CurrencyField*>(pNewWindow) );
break;
case WINDOW_DATEBOX:
pNewWindow = new DateBox( pParent, nWinBits );
......@@ -846,7 +848,7 @@ vcl::Window* VCLXToolkit::ImplCreateWindow( VCLXWindow** ppNewComp,
pNewWindow = new DateField( pParent, nWinBits );
static_cast<DateField*>(pNewWindow)->EnableEmptyFieldValue( true );
*ppNewComp = new VCLXDateField;
((VCLXFormattedSpinField*)*ppNewComp)->SetFormatter( (FormatterBase*)(DateField*)pNewWindow );
static_cast<VCLXFormattedSpinField*>(*ppNewComp)->SetFormatter( (FormatterBase*)static_cast<DateField*>(pNewWindow) );
break;
case WINDOW_DOCKINGAREA:
pNewWindow = new DockingAreaWindow( pParent );
......@@ -902,7 +904,7 @@ vcl::Window* VCLXToolkit::ImplCreateWindow( VCLXWindow** ppNewComp,
break;
case WINDOW_LISTBOX:
pNewWindow = new ListBox( pParent, nWinBits|WB_SIMPLEMODE|WB_AUTOHSCROLL );
((ListBox*)pNewWindow)->EnableAutoSize( false );
static_cast<ListBox*>(pNewWindow)->EnableAutoSize( false );
*ppNewComp = new VCLXListBox;
break;
case WINDOW_LONGCURRENCYBOX:
......@@ -911,7 +913,7 @@ vcl::Window* VCLXToolkit::ImplCreateWindow( VCLXWindow** ppNewComp,
case WINDOW_LONGCURRENCYFIELD:
pNewWindow = new LongCurrencyField( pParent, nWinBits );
*ppNewComp = new VCLXCurrencyField;
((VCLXFormattedSpinField*)*ppNewComp)->SetFormatter( (FormatterBase*)(LongCurrencyField*)pNewWindow );
static_cast<VCLXFormattedSpinField*>(*ppNewComp)->SetFormatter( (FormatterBase*)static_cast<LongCurrencyField*>(pNewWindow) );
break;
case WINDOW_MENUBUTTON:
pNewWindow = new MenuButton( pParent, nWinBits );
......@@ -927,7 +929,7 @@ vcl::Window* VCLXToolkit::ImplCreateWindow( VCLXWindow** ppNewComp,
case WINDOW_METRICFIELD:
pNewWindow = new MetricField( pParent, nWinBits );
*ppNewComp = new VCLXMetricField;
((VCLXFormattedSpinField*)*ppNewComp)->SetFormatter( (FormatterBase*)(MetricField*)pNewWindow );
static_cast<VCLXFormattedSpinField*>(*ppNewComp)->SetFormatter( (FormatterBase*)static_cast<MetricField*>(pNewWindow) );
break;
case WINDOW_DIALOG:
case WINDOW_MODALDIALOG:
......@@ -962,7 +964,7 @@ vcl::Window* VCLXToolkit::ImplCreateWindow( VCLXWindow** ppNewComp,
pNewWindow = new NumericField( pParent, nWinBits );
static_cast<NumericField*>(pNewWindow)->EnableEmptyFieldValue( true );
*ppNewComp = new VCLXNumericField;
((VCLXFormattedSpinField*)*ppNewComp)->SetFormatter( (FormatterBase*)(NumericField*)pNewWindow );
static_cast<VCLXFormattedSpinField*>(*ppNewComp)->SetFormatter( (FormatterBase*)static_cast<NumericField*>(pNewWindow) );
break;
case WINDOW_OKBUTTON:
pNewWindow = new OKButton( pParent, nWinBits );
......@@ -974,7 +976,7 @@ vcl::Window* VCLXToolkit::ImplCreateWindow( VCLXWindow** ppNewComp,
case WINDOW_PATTERNFIELD:
pNewWindow = new PatternField( pParent, nWinBits );
*ppNewComp = new VCLXPatternField;
((VCLXFormattedSpinField*)*ppNewComp)->SetFormatter( (FormatterBase*)(PatternField*)pNewWindow );
static_cast<VCLXFormattedSpinField*>(*ppNewComp)->SetFormatter( (FormatterBase*)static_cast<PatternField*>(pNewWindow) );
break;
case WINDOW_PUSHBUTTON:
pNewWindow = new PushButton( pParent, nWinBits );
......@@ -1047,7 +1049,7 @@ vcl::Window* VCLXToolkit::ImplCreateWindow( VCLXWindow** ppNewComp,
pNewWindow = new TimeField( pParent, nWinBits );
static_cast<TimeField*>(pNewWindow)->EnableEmptyFieldValue( true );
*ppNewComp = new VCLXTimeField;
((VCLXFormattedSpinField*)*ppNewComp)->SetFormatter( (FormatterBase*)(TimeField*)pNewWindow );
static_cast<VCLXFormattedSpinField*>(*ppNewComp)->SetFormatter( (FormatterBase*)static_cast<TimeField*>(pNewWindow) );
break;
case WINDOW_TOOLBOX:
pNewWindow = new ToolBox( pParent, nWinBits );
......
......@@ -83,18 +83,18 @@ Sequence< Type > VCLXTopWindow_Base::getTypes() throw(RuntimeException, std::exc
vcl::Window* pWindow = GetWindowImpl();
if ( pWindow )
{
const SystemEnvData* pSysData = ((SystemWindow *)pWindow)->GetSystemData();
const SystemEnvData* pSysData = static_cast<SystemWindow *>(pWindow)->GetSystemData();
if( pSysData )
{
#if (defined WNT)
if( SystemType == ::com::sun::star::lang::SystemDependent::SYSTEM_WIN32 )
{
aRet <<= (sal_IntPtr)pSysData->hWnd;
aRet <<= reinterpret_cast<sal_IntPtr>(pSysData->hWnd);
}
#elif (defined MACOSX)
if( SystemType == ::com::sun::star::lang::SystemDependent::SYSTEM_MAC )
{
aRet <<= (sal_IntPtr)pSysData->mpNSView;
aRet <<= reinterpret_cast<sal_IntPtr>(pSysData->mpNSView);
}
#elif (defined ANDROID)
// Nothing
......@@ -136,7 +136,7 @@ void VCLXTopWindow_Base::toFront( ) throw(::com::sun::star::uno::RuntimeExcepti
vcl::Window* pWindow = GetWindowImpl();
if ( pWindow )
((WorkWindow*)pWindow)->ToTop( TOTOP_RESTOREWHENMIN );
static_cast<WorkWindow*>(pWindow)->ToTop( TOTOP_RESTOREWHENMIN );
}
void VCLXTopWindow_Base::toBack( ) throw(::com::sun::star::uno::RuntimeException, std::exception)
......@@ -147,7 +147,7 @@ void VCLXTopWindow_Base::setMenuBar( const ::com::sun::star::uno::Reference< ::c
{
SolarMutexGuard aGuard;
SystemWindow* pWindow = (SystemWindow*) GetWindowImpl();
SystemWindow* pWindow = dynamic_cast<SystemWindow*>( GetWindowImpl() );
if ( pWindow )
{
pWindow->SetMenuBar( NULL );
......@@ -155,7 +155,7 @@ void VCLXTopWindow_Base::setMenuBar( const ::com::sun::star::uno::Reference< ::c
{
VCLXMenu* pMenu = VCLXMenu::GetImplementation( rxMenu );
if ( pMenu && !pMenu->IsPopupMenu() )
pWindow->SetMenuBar( (MenuBar*) pMenu->GetMenu() );
pWindow->SetMenuBar( static_cast<MenuBar*>( pMenu->GetMenu() ));
}
}
mxMenuBar = rxMenu;
......
......@@ -413,8 +413,8 @@ IMPL_LINK( VCLXWindow, WindowEventListener, VclSimpleEvent*, pEvent )
DBG_ASSERT( pEvent && pEvent->ISA( VclWindowEvent ), "Unknown WindowEvent!" );
if ( pEvent && pEvent->ISA( VclWindowEvent ) )
{
DBG_ASSERT( ((VclWindowEvent*)pEvent)->GetWindow() && GetWindow(), "Window???" );
ProcessWindowEvent( *(VclWindowEvent*)pEvent );
DBG_ASSERT( static_cast<VclWindowEvent*>(pEvent)->GetWindow() && GetWindow(), "Window???" );
ProcessWindowEvent( *static_cast<VclWindowEvent*>(pEvent) );
}
return 0;
}
......
......@@ -91,7 +91,7 @@ void VCLXWindow::SetSystemParent_Impl( const com::sun::star::uno::Any& rHandle )
#endif
// set system parent
((WorkWindow*)pWindow)->SetPluginParent( &aSysParentData );
static_cast<WorkWindow*>(pWindow)->SetPluginParent( &aSysParentData );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment