[Libreoffice-commits] core.git: vcl/osx
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Sun Dec 13 21:26:09 UTC 2020
vcl/osx/DataFlavorMapping.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 9231746301c99f26500ca26e841822b2c0d676b1
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Sun Dec 13 19:21:17 2020 +0100
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Sun Dec 13 22:25:20 2020 +0100
loplugin:stringviewparam (macOS)
Change-Id: I3f026a3c2348b55cadf40f5d28c90963266486f1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107658
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/vcl/osx/DataFlavorMapping.cxx b/vcl/osx/DataFlavorMapping.cxx
index 07534d0c893b..26724c5aed97 100644
--- a/vcl/osx/DataFlavorMapping.cxx
+++ b/vcl/osx/DataFlavorMapping.cxx
@@ -35,6 +35,7 @@
#include <cassert>
#include <string.h>
+#include <string_view>
#include <premac.h>
#include <Cocoa/Cocoa.h>
@@ -67,7 +68,7 @@ namespace
return OUString(utf8Str, len, RTL_TEXTENCODING_UTF8);
}
- NSString* OUStringToNSString(const OUString& ustring)
+ NSString* OUStringToNSString(std::u16string_view ustring)
{
OString utf8Str = OUStringToOString(ustring, RTL_TEXTENCODING_UTF8);
return [NSString stringWithCString: utf8Str.getStr() encoding: NSUTF8StringEncoding];
More information about the Libreoffice-commits
mailing list