summaryrefslogtreecommitdiff
path: root/scripting/source/storage/ScriptURI.cxx
diff options
context:
space:
mode:
authorNoel Power <npower@openoffice.org>2003-02-12 15:24:37 +0000
committerNoel Power <npower@openoffice.org>2003-02-12 15:24:37 +0000
commit8b6e7586b44fd10790b4a495f1933f0a7da15684 (patch)
tree4223c847279b4b0606d5383c7e666f487dde8f0f /scripting/source/storage/ScriptURI.cxx
parentba62f7f95190f65ae7dd0534e13843e15f59a269 (diff)
Bug in parsing, incorrect initialisation of valid member of Uri struct caused spurious failure
Diffstat (limited to 'scripting/source/storage/ScriptURI.cxx')
-rw-r--r--scripting/source/storage/ScriptURI.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/scripting/source/storage/ScriptURI.cxx b/scripting/source/storage/ScriptURI.cxx
index f699004113b1..eff913f1148f 100644
--- a/scripting/source/storage/ScriptURI.cxx
+++ b/scripting/source/storage/ScriptURI.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ScriptURI.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: dfoster $ $Date: 2002-11-06 16:26:26 $
+ * last change: $Author: npower $ $Date: 2003-02-12 16:24:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -113,7 +113,7 @@ ScriptURI::~ScriptURI() SAL_THROW( () )
*
*/
bool ScriptURI::isValid( ) {
- return m_valid;
+ return ( m_valid == sal_True );
}
/**
@@ -182,7 +182,7 @@ Uri ScriptURI::parseIt()
{
sal_Int32 schemaLen = schema.getLength();
scripting_impl::Uri results;
-
+ results.valid = sal_True;
//attempt to parse
// check that it starts script://
// better check for OBO errors here
@@ -199,7 +199,6 @@ Uri ScriptURI::parseIt()
{
// no queries so just set the logical name
results.logicalName = m_uri.copy( schemaLen );
- results.valid = sal_True;
return results;
}
results.logicalName = m_uri.copy( schemaLen, len-schemaLen );