diff options
Diffstat (limited to 'static')
-rw-r--r-- | static/source/embindmaker/embindmaker.cxx | 7 | ||||
-rw-r--r-- | static/source/unoembindhelpers/PrimaryBindings.cxx | 5 |
2 files changed, 6 insertions, 6 deletions
diff --git a/static/source/embindmaker/embindmaker.cxx b/static/source/embindmaker/embindmaker.cxx index f9540c1f006b..6c0017ccb8c2 100644 --- a/static/source/embindmaker/embindmaker.cxx +++ b/static/source/embindmaker/embindmaker.cxx @@ -1088,12 +1088,7 @@ SAL_IMPLEMENT_MAIN() " .class_function(\"reference\", +[](" << cppName(ifc) << " * the_interface) { return ::com::sun::star::uno::Reference(the_interface); " - "}, ::emscripten::allow_raw_pointers())\n" - " .function(\"$equals\", +[](::com::sun::star::uno::Reference<" - << cppName(ifc) - << "> const & the_self, " - "::com::sun::star::uno::Reference<::com::sun::star::uno::XInterface> const & " - "the_other) { return the_self == the_other; })\n"; + "}, ::emscripten::allow_raw_pointers())\n"; if (bases.size() > 1) { std::set<OUString> visitedBases; diff --git a/static/source/unoembindhelpers/PrimaryBindings.cxx b/static/source/unoembindhelpers/PrimaryBindings.cxx index 7abf88669d02..862cbb1101e2 100644 --- a/static/source/unoembindhelpers/PrimaryBindings.cxx +++ b/static/source/unoembindhelpers/PrimaryBindings.cxx @@ -13,8 +13,10 @@ #include <emscripten/bind.h> #include <com/sun/star/uno/Any.hxx> +#include <com/sun/star/uno/Reference.hxx> #include <com/sun/star/uno/RuntimeException.hpp> #include <com/sun/star/uno/Type.hxx> +#include <com/sun/star/uno/XInterface.hpp> #include <comphelper/processfactory.hxx> #include <cppuhelper/exc_hlp.hxx> #include <o3tl/any.hxx> @@ -401,6 +403,9 @@ EMSCRIPTEN_BINDINGS(PrimaryBindings) function("throwUnoException", +[](css::uno::Type const& type, emscripten::val const& value) { cppu::throwException(constructAny(type, value)); }); + function("sameUnoObject", + +[](css::uno::Reference<css::uno::XInterface> const& ref1, + css::uno::Reference<css::uno::XInterface> const& ref2) { return ref1 == ref2; }); function("rtl_uString_release", +[](std::uintptr_t ptr) { rtl_uString_release(reinterpret_cast<rtl_uString*>(ptr)); }); |