summaryrefslogtreecommitdiff
path: root/xmlhelp/source/cxxhelp/inc/util
diff options
context:
space:
mode:
Diffstat (limited to 'xmlhelp/source/cxxhelp/inc/util')
-rw-r--r--xmlhelp/source/cxxhelp/inc/util/IndexAccessor.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmlhelp/source/cxxhelp/inc/util/IndexAccessor.hxx b/xmlhelp/source/cxxhelp/inc/util/IndexAccessor.hxx
index 0ebb01e16f8f..edae2cb85724 100644
--- a/xmlhelp/source/cxxhelp/inc/util/IndexAccessor.hxx
+++ b/xmlhelp/source/cxxhelp/inc/util/IndexAccessor.hxx
@@ -52,10 +52,12 @@ namespace xmlsearch {
IndexAccessor( const rtl::OUString& dirName )
{
if( dirName.getLength() )
+ {
if( dirName.getStr()[dirName.getLength()-1] != sal_Unicode( '/' ) )
dirName_ = ( dirName + rtl::OUString::createFromAscii( "/" ) ) ;
else
dirName_ = dirName;
+ }
}