From 5459254a88c89af173085e45f425fd739fd63f4e Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 12 Jun 2024 14:54:06 +0200 Subject: Embind: Let unoObject return a css.uno.XInterface reference ...and confine the _impl map to an internal detail. Client code should have no need to access that _impl map (renamed here to impl_interfaces), nor the Module.uno_Type_*.reference functions (nor the Module.uno_Type_*.implement functions). Change-Id: Ic9c74f22cedb9b5eeecb42d7c13ee0555e92690d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168732 Reviewed-by: Stephan Bergmann Tested-by: Jenkins --- unotest/source/embindtest/embindtest.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'unotest') diff --git a/unotest/source/embindtest/embindtest.js b/unotest/source/embindtest/embindtest.js index db6876a4d7c8..37a83fba9f4e 100644 --- a/unotest/source/embindtest/embindtest.js +++ b/unotest/source/embindtest/embindtest.js @@ -658,11 +658,9 @@ Module.addOnPostRun(function() { }, trigger(event) { console.log('Ola ' + event); } }); - test.passJob(css.task.XJob.reference(obj._impl['com.sun.star.task.XJob'])); - test.passJobExecutor( - css.task.XJobExecutor.reference(obj._impl['com.sun.star.task.XJobExecutor'])); - test.passInterface(css.uno.XInterface.reference(obj._impl['com.sun.star.lang.XTypeProvider'])); - obj.release(); + test.passJob(css.task.XJob.query(obj)); + test.passJobExecutor(css.task.XJobExecutor.query(obj)); + test.passInterface(obj); test.StringAttribute = 'hä'; console.assert(test.StringAttribute === 'hä'); -- cgit v1.2.3