diff options
author | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-06-12 14:54:06 +0200 |
---|---|---|
committer | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-06-12 16:30:46 +0200 |
commit | 5459254a88c89af173085e45f425fd739fd63f4e (patch) | |
tree | d4bd297000d9538fcc5398349af91ec8f408475c /unotest | |
parent | a17f27e77bef2262ffa9b4e769c71e1c4d4fa6c2 (diff) |
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 <stephan.bergmann@allotropia.de>
Tested-by: Jenkins
Diffstat (limited to 'unotest')
-rw-r--r-- | unotest/source/embindtest/embindtest.js | 8 |
1 files changed, 3 insertions, 5 deletions
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ä'); |