diff options
author | Frank Schönheit <fs@openoffice.org> | 2010-01-05 08:59:29 +0000 |
---|---|---|
committer | Frank Schönheit <fs@openoffice.org> | 2010-01-05 08:59:29 +0000 |
commit | a14b4c96b8365d6d50d521fca12f8a2f93fc255f (patch) | |
tree | fddcc7845cb89e737133e6baeb060e450f25529e | |
parent | 64335969f5c70b1ae49f6d7da61e6478baed3ed4 (diff) |
#i10000#
-rw-r--r-- | dbaccess/source/filter/xml/xmlFileBasedDatabase.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dbaccess/source/filter/xml/xmlFileBasedDatabase.cxx b/dbaccess/source/filter/xml/xmlFileBasedDatabase.cxx index 1f77f02b70f8..edfb331d5b59 100644 --- a/dbaccess/source/filter/xml/xmlFileBasedDatabase.cxx +++ b/dbaccess/source/filter/xml/xmlFileBasedDatabase.cxx @@ -102,9 +102,9 @@ OXMLFileBasedDatabase::OXMLFileBasedDatabase( ODBFilter& rImport, rtl::OUString sFileName = aPathOptions.SubstituteVariable(sValue); if ( sValue == sFileName ) { - const sal_Int32 nLength = sFileName.getLength(); - if ( ( nLength > 0 ) && ( sFileName.getStr()[ nLength - 1 ] == '/' ) ) - sFileName = sFileName.copy( 0, nLength - 1 ); + const sal_Int32 nFileNameLength = sFileName.getLength(); + if ( ( nFileNameLength > 0 ) && ( sFileName.getStr()[ nFileNameLength - 1 ] == '/' ) ) + sFileName = sFileName.copy( 0, nFileNameLength - 1 ); sLocation = ::svt::OFileNotation( rImport.GetAbsoluteReference( sFileName ) ).get( ::svt::OFileNotation::N_SYSTEM ); } |