summaryrefslogtreecommitdiff
path: root/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleHyphenator.java
diff options
context:
space:
mode:
Diffstat (limited to 'odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleHyphenator.java')
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleHyphenator.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleHyphenator.java b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleHyphenator.java
index a81aad0e1ab6..d786d0ad98b3 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleHyphenator.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleHyphenator.java
@@ -84,7 +84,7 @@ public class SampleHyphenator extends ComponentBase implements
"HyphMinTrailing",
"HyphMinWordLength"
};
- aPropChgHelper = new PropChgHelper_Hyph( (XHyphenator) this, aProps );
+ aPropChgHelper = new PropChgHelper_Hyph( this, aProps );
aEvtListeners = new ArrayList<Object>();;
bDisposing = false;
}
@@ -442,7 +442,7 @@ public class SampleHyphenator 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 );