diff options
Diffstat (limited to 'dbaccess/source/filter/xml/xmlFileBasedDatabase.cxx')
-rw-r--r-- | dbaccess/source/filter/xml/xmlFileBasedDatabase.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/filter/xml/xmlFileBasedDatabase.cxx b/dbaccess/source/filter/xml/xmlFileBasedDatabase.cxx index 24f5795d9777..126dbe865552 100644 --- a/dbaccess/source/filter/xml/xmlFileBasedDatabase.cxx +++ b/dbaccess/source/filter/xml/xmlFileBasedDatabase.cxx @@ -73,7 +73,7 @@ OXMLFileBasedDatabase::OXMLFileBasedDatabase( ODBFilter& rImport, if ( sValue == sFileName ) { const sal_Int32 nFileNameLength = sFileName.getLength(); - if ( ( nFileNameLength > 0 ) && ( sFileName.getStr()[ nFileNameLength - 1 ] == '/' ) ) + if ( sFileName.endsWith("/") ) sFileName = sFileName.copy( 0, nFileNameLength - 1 ); sLocation = ::svt::OFileNotation( rImport.GetAbsoluteReference( sFileName ) ).get( ::svt::OFileNotation::N_SYSTEM ); |