summaryrefslogtreecommitdiff
path: root/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleThesaurus.java
diff options
context:
space:
mode:
Diffstat (limited to 'odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleThesaurus.java')
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleThesaurus.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleThesaurus.java b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleThesaurus.java
index e33929a4b77a..fb8c96f3bcfe 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleThesaurus.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleThesaurus.java
@@ -80,7 +80,7 @@ public class SampleThesaurus extends ComponentBase implements
// which is here basically used only to keep track of the
// property set (and it's lifetime) since it gets used in the
// 'GetValueToUse' function
- aPropChgHelper = new PropChgHelper( (XThesaurus) this, aProps );
+ aPropChgHelper = new PropChgHelper( this, aProps );
aEvtListeners = new ArrayList<Object>();
bDisposing = false;
@@ -222,7 +222,7 @@ public class SampleThesaurus 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 );