diff options
Diffstat (limited to 'unotools/qa')
-rw-r--r-- | unotools/qa/complex/tempfile/Test01.java | 3 | ||||
-rw-r--r-- | unotools/qa/complex/tempfile/Test02.java | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/unotools/qa/complex/tempfile/Test01.java b/unotools/qa/complex/tempfile/Test01.java index 6f52100f23fe..ae4d80de4d10 100644 --- a/unotools/qa/complex/tempfile/Test01.java +++ b/unotools/qa/complex/tempfile/Test01.java @@ -39,7 +39,6 @@ public class Test01 implements TempFileTest { public boolean test() { XTempFile xTempFile = null; - XTruncate xTruncate = null; String sFileURL = null; String sFileName = null; //create a temporary file. @@ -47,7 +46,7 @@ public class Test01 implements TempFileTest { Object oTempFile = m_xMSF.createInstance( "com.sun.star.io.TempFile" ); xTempFile = UnoRuntime.queryInterface(XTempFile.class, oTempFile); m_aTestHelper.Message( "Tempfile created." ); - xTruncate = UnoRuntime.queryInterface(XTruncate.class, oTempFile); + UnoRuntime.queryInterface(XTruncate.class, oTempFile); } catch( Exception e ) { m_aTestHelper.Error( "Cannot create TempFile. exception: " + e ); return false; diff --git a/unotools/qa/complex/tempfile/Test02.java b/unotools/qa/complex/tempfile/Test02.java index 17d5577dc85a..b1c0f70b32b6 100644 --- a/unotools/qa/complex/tempfile/Test02.java +++ b/unotools/qa/complex/tempfile/Test02.java @@ -40,14 +40,13 @@ public class Test02 implements TempFileTest { public boolean test() { Object oTempFile = null; XTempFile xTempFile = null; - XTruncate xTruncate = null; String sFileURL = null; //create a temporary file. try { oTempFile = m_xMSF.createInstance( "com.sun.star.io.TempFile" ); xTempFile = UnoRuntime.queryInterface(XTempFile.class, oTempFile); m_aTestHelper.Message( "Tempfile created." ); - xTruncate = UnoRuntime.queryInterface(XTruncate.class, oTempFile); + UnoRuntime.queryInterface(XTruncate.class, oTempFile); } catch(Exception e) { m_aTestHelper.Error( "Cannot create TempFile. exception: " + e ); return false; |