diff options
Diffstat (limited to 'sw/qa/complex/writer/CheckIndexedPropertyValues.java')
-rw-r--r-- | sw/qa/complex/writer/CheckIndexedPropertyValues.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sw/qa/complex/writer/CheckIndexedPropertyValues.java b/sw/qa/complex/writer/CheckIndexedPropertyValues.java index 338f7065e02c..83d58c46cb0c 100644 --- a/sw/qa/complex/writer/CheckIndexedPropertyValues.java +++ b/sw/qa/complex/writer/CheckIndexedPropertyValues.java @@ -35,12 +35,11 @@ public class CheckIndexedPropertyValues { @Test public void checkIndexedPropertyValues() throws com.sun.star.uno.Exception { - XIndexContainer xCont = UnoRuntime.queryInterface( - XIndexContainer.class, - (connection.getComponentContext().getServiceManager(). - createInstanceWithContext( - "com.sun.star.document.IndexedPropertyValues", - connection.getComponentContext()))); + Object instance = connection.getComponentContext().getServiceManager(). + createInstanceWithContext( + "com.sun.star.document.IndexedPropertyValues", + connection.getComponentContext()); + XIndexContainer xCont = UnoRuntime.queryInterface(XIndexContainer.class, instance); assertNotNull("XIndexContainer was queried but returned null.", xCont); PropertyValue[] prop1 = new PropertyValue[1]; |