svx/source/gallery2/gallery1.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 6a515900f93e46af40c7d8cc8ced6fffda1d8ffa Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Mon Oct 11 12:56:47 2021 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Mon Oct 11 16:37:33 2021 +0200 loplugin:stringview (macOS) Change-Id: Id95f0306484b18fea057553c19c6a0f08d15c784 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123379 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/svx/source/gallery2/gallery1.cxx b/svx/source/gallery2/gallery1.cxx index ceb8a0fea7b4..3d0892ab011b 100644 --- a/svx/source/gallery2/gallery1.cxx +++ b/svx/source/gallery2/gallery1.cxx @@ -302,7 +302,7 @@ void Gallery::ImplLoadSubDirs( const INetURLObject& rBaseURL, bool& rbDirIsReadO { const char *appBundle = [[[NSBundle mainBundle] bundlePath] UTF8String]; OUString path = rBaseURL.GetURLPath(); - if( path.startsWith( OUString(OUString( appBundle, strlen( appBundle ), RTL_TEXTENCODING_UTF8 ) + "/") ) ) + if( path.startsWith( OUStringConcatenation(OUString( appBundle, strlen( appBundle ), RTL_TEXTENCODING_UTF8 ) + "/") ) ) rbDirIsReadOnly = true; } #else