diff options
Diffstat (limited to 'odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleSpellChecker.java')
-rw-r--r-- | odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleSpellChecker.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleSpellChecker.java b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleSpellChecker.java index 10ec0aa9f46e..c4c61eb73beb 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleSpellChecker.java +++ b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleSpellChecker.java @@ -84,7 +84,7 @@ public class SampleSpellChecker extends ComponentBase implements "IsSpellWithDigits", "IsSpellCapitalization" }; - aPropChgHelper = new PropChgHelper_Spell( (XSpellChecker) this, aProps ); + aPropChgHelper = new PropChgHelper_Spell( this, aProps ); aEvtListeners = new ArrayList<Object>(); bDisposing = false; } @@ -386,7 +386,7 @@ public class SampleSpellChecker extends ComponentBase implements int nLen = aArguments.length; if (2 == nLen) { - XPropertySet xPropSet = (XPropertySet)UnoRuntime.queryInterface( + XPropertySet xPropSet = UnoRuntime.queryInterface( XPropertySet.class, aArguments[0]); // start listening to property changes aPropChgHelper.AddAsListenerTo( xPropSet ); |