summaryrefslogtreecommitdiff
path: root/extensions/source/plugin/base/nfuncs.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/source/plugin/base/nfuncs.cxx')
-rw-r--r--extensions/source/plugin/base/nfuncs.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/source/plugin/base/nfuncs.cxx b/extensions/source/plugin/base/nfuncs.cxx
index f827026095f4..d56e02a9b7f5 100644
--- a/extensions/source/plugin/base/nfuncs.cxx
+++ b/extensions/source/plugin/base/nfuncs.cxx
@@ -146,13 +146,13 @@ static OString normalizeURL( XPlugin_Impl* plugin, const OString& url )
int nPos;
if( ( nPos = aLoadURL.indexOf( "://" ) ) != -1 )
{
- if( !url.isEmpty() && (url.getStr()[ 0 ] == '/' || url.indexOf( '/' ) != -1) )
+ if( url.indexOf( '/' ) != -1 )
{
// this means same server but new path
nPos = aLoadURL.indexOf( '/', nPos+3 );
if( nPos != -1 )
- aLoadURL = aLoadURL.copy( 0, url.getStr()[0] == '/' ? nPos : nPos+1 );
+ aLoadURL = aLoadURL.copy( 0, url.startsWith("/") ? nPos : nPos+1 );
}
else
{