forked from amazingfate/loongoffice
Java cleanup - remove unnecessary casts in the ODK code
Change-Id: I1ab8ad5182444fc3eebd2349135a0240ebbe0fd4 Reviewed-on: https://gerrit.libreoffice.org/3566 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
This commit is contained in:
committed by
Fridrich Strba
parent
4f6adb0585
commit
68b9fb0aae
@ -101,12 +101,12 @@ public class ProtocolHandlerAddon {
|
||||
|
||||
if ( object.length > 0 )
|
||||
{
|
||||
m_xFrame = ( XFrame ) UnoRuntime.queryInterface(
|
||||
m_xFrame = UnoRuntime.queryInterface(
|
||||
XFrame.class, object[ 0 ] );
|
||||
}
|
||||
|
||||
// Create the toolkit to have access to it later
|
||||
m_xToolkit = (XToolkit) UnoRuntime.queryInterface(
|
||||
m_xToolkit = UnoRuntime.queryInterface(
|
||||
XToolkit.class,
|
||||
m_xCmpCtx.getServiceManager().createInstanceWithContext("com.sun.star.awt.Toolkit",
|
||||
m_xCmpCtx));
|
||||
@ -211,7 +211,7 @@ public class ProtocolHandlerAddon {
|
||||
aDescriptor.Type = WindowClass.MODALTOP;
|
||||
aDescriptor.WindowServiceName = new String( "infobox" );
|
||||
aDescriptor.ParentIndex = -1;
|
||||
aDescriptor.Parent = (XWindowPeer)UnoRuntime.queryInterface(
|
||||
aDescriptor.Parent = UnoRuntime.queryInterface(
|
||||
XWindowPeer.class, m_xFrame.getContainerWindow());
|
||||
aDescriptor.Bounds = new Rectangle(0,0,300,200);
|
||||
aDescriptor.WindowAttributes = WindowAttribute.BORDER |
|
||||
@ -220,7 +220,7 @@ public class ProtocolHandlerAddon {
|
||||
|
||||
XWindowPeer xPeer = m_xToolkit.createWindow( aDescriptor );
|
||||
if ( null != xPeer ) {
|
||||
XMessageBox xMsgBox = (XMessageBox)UnoRuntime.queryInterface(
|
||||
XMessageBox xMsgBox = UnoRuntime.queryInterface(
|
||||
XMessageBox.class, xPeer);
|
||||
if ( null != xMsgBox )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user