diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2011-05-03 22:55:31 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2011-05-03 22:55:31 +0200 |
commit | 2be3b8bd883ce2df2f1a9edce6292ad749d96fd4 (patch) | |
tree | f2c43c4e854893edd816ddbf21e117e3dd537bb9 /forms/qa | |
parent | c7708416213ecc8848dbd33e78e34a4dc514a2fd (diff) |
Change <file>.toURL() to <file>.toURI().toURL()
Diffstat (limited to 'forms/qa')
-rw-r--r-- | forms/qa/integration/forms/ListSelection.java | 2 | ||||
-rw-r--r-- | forms/qa/integration/forms/XMLFormSettings.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/forms/qa/integration/forms/ListSelection.java b/forms/qa/integration/forms/ListSelection.java index 17026c09906e..32ef4e96860c 100644 --- a/forms/qa/integration/forms/ListSelection.java +++ b/forms/qa/integration/forms/ListSelection.java @@ -271,7 +271,7 @@ public class ListSelection extends integration.forms.TestCase { XStorable storable = (XStorable)m_document.query( XStorable.class ); java.io.File testFile = java.io.File.createTempFile( getTestObjectName(),".ods"); - storable.storeAsURL( testFile.getAbsoluteFile().toURL().toString(), new com.sun.star.beans.PropertyValue[]{} ); + storable.storeAsURL( testFile.getAbsoluteFile().toURI().toURL().toString(), new com.sun.star.beans.PropertyValue[]{} ); testFile.deleteOnExit(); } catch( java.lang.Throwable e ) diff --git a/forms/qa/integration/forms/XMLFormSettings.java b/forms/qa/integration/forms/XMLFormSettings.java index e3881bfa861d..17bbd5a35b95 100644 --- a/forms/qa/integration/forms/XMLFormSettings.java +++ b/forms/qa/integration/forms/XMLFormSettings.java @@ -112,7 +112,7 @@ public class XMLFormSettings extends complexlib.ComplexTestCase // store the document File tempFile = File.createTempFile( "xmlforms", ".odt" ); tempFile.deleteOnExit(); - String fileURL = tempFile.toURL().toExternalForm(); + String fileURL = tempFile.toURI().toURL().toExternalForm(); XStorable store = (XStorable)UnoRuntime.queryInterface( XStorable.class, m_document.getDocument() ); store.storeAsURL( fileURL, new PropertyValue[] {} ); |