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
@ -159,9 +159,8 @@ public abstract class DocumentBasedExample implements com.sun.star.lang.XEventLi
|
||||
// close our document
|
||||
if ( m_document != null )
|
||||
{
|
||||
XCloseable closeDoc = (XCloseable)
|
||||
UnoRuntime.queryInterface( XCloseable.class,
|
||||
m_document.getDocument() );
|
||||
XCloseable closeDoc = UnoRuntime.queryInterface( XCloseable.class,
|
||||
m_document.getDocument() );
|
||||
if (closeDoc != null)
|
||||
closeDoc.close( true );
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user