From 9a982f8cb62da5a82ae1426aa40900dd360c93b5 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 30 Jan 2024 20:40:11 +0100 Subject: Embinding OUString shouldn't need allow_raw_pointers Change-Id: I92608ebe4edf65c7de96587aa39e990fb09c3e19 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162779 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- static/source/unoembindhelpers/PrimaryBindings.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/static/source/unoembindhelpers/PrimaryBindings.cxx b/static/source/unoembindhelpers/PrimaryBindings.cxx index b57749170470..4277af563936 100644 --- a/static/source/unoembindhelpers/PrimaryBindings.cxx +++ b/static/source/unoembindhelpers/PrimaryBindings.cxx @@ -40,8 +40,7 @@ EMSCRIPTEN_BINDINGS(PrimaryBindings) .value("FromAny", unoembindhelpers::uno_Reference::FromAny); class_("OUString") - .constructor(+[](const std::u16string& rString) -> OUString { return OUString(rString); }, - allow_raw_pointers()) + .constructor(+[](const std::u16string& rString) -> OUString { return OUString(rString); }) .function("toString", +[](const OUString& rSelf) -> std::u16string { return std::u16string(rSelf.getStr(), rSelf.getLength()); }); -- cgit