diff options
Diffstat (limited to 'pyuno/source/loader/pyuno_loader.cxx')
-rw-r--r-- | pyuno/source/loader/pyuno_loader.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyuno/source/loader/pyuno_loader.cxx b/pyuno/source/loader/pyuno_loader.cxx index f7a909fbd0fc..f1dcf06218ef 100644 --- a/pyuno/source/loader/pyuno_loader.cxx +++ b/pyuno/source/loader/pyuno_loader.cxx @@ -150,11 +150,11 @@ static void prependPythonPath( const OUString & pythonPathBootstrap ) OUString fileUrl; if( nNew == -1 ) { - fileUrl = OUString( &( pythonPathBootstrap[nIndex] ) ); + fileUrl = pythonPathBootstrap.copy(nIndex); } else { - fileUrl = OUString( &(pythonPathBootstrap[nIndex]) , nNew - nIndex ); + fileUrl = pythonPathBootstrap.copy(nIndex, nNew - nIndex); } OUString systemPath; osl_getSystemPathFromFileURL( fileUrl.pData, &(systemPath.pData) ); |