diff options
Diffstat (limited to 'odk/examples/DevelopersGuide/OfficeDev/Linguistic/LinguisticExamples.java')
-rw-r--r-- | odk/examples/DevelopersGuide/OfficeDev/Linguistic/LinguisticExamples.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/LinguisticExamples.java b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/LinguisticExamples.java index b21190d173aa..7cdf7f68b381 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/LinguisticExamples.java +++ b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/LinguisticExamples.java @@ -113,8 +113,7 @@ public class LinguisticExamples if (mxRemoteContext != null && mxRemoteServiceManager != null) { Object aObj = mxRemoteServiceManager.createInstanceWithContext( "com.sun.star.linguistic2.LinguServiceManager", mxRemoteContext ); - mxLinguSvcMgr = (XLinguServiceManager) - UnoRuntime.queryInterface(XLinguServiceManager.class, aObj); + mxLinguSvcMgr = UnoRuntime.queryInterface(XLinguServiceManager.class, aObj); } return mxLinguSvcMgr != null; } @@ -291,7 +290,7 @@ public class LinguisticExamples // get access to LinguProperties property set Object aObj = mxRemoteServiceManager.createInstanceWithContext( "com.sun.star.linguistic2.LinguProperties", mxRemoteContext); - XPropertySet aLinguProps = (XPropertySet) UnoRuntime.queryInterface( + XPropertySet aLinguProps = UnoRuntime.queryInterface( XPropertySet.class,aObj); // set a spellchecker and hyphenator property value to a defined state |