diff options
author | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-02-07 14:47:54 +0100 |
---|---|---|
committer | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-02-08 09:30:22 +0100 |
commit | 72056edca078dd010368de15d03321a60c6d5cdd (patch) | |
tree | cf95055fa1cd91da12d868feaff8afce94733265 /emfio | |
parent | 578d9be50413a4bdc809f8b5f58cc177458f8325 (diff) |
Embind: Allow UNO sequences to be constructed from JS arrays
...though
> let seq = new Module.uno_Sequence_string(["foo", "bar", "baz"]);
> // ...
> delete seq;
is still ugly.
And Embind only allows for overload resolution by number of parameters, not by
their type, so using the original sequence constructor had to be changed to
> let seq = new Module.uno_Sequence_string(3, Module.uno_Sequence.FromSize);
> seq.set(0, "foo");
> seq.set(1, "bar");
> seq.set(2, "baz");
> // ...
> delete seq;
Change-Id: If26ff4a485ba16b65cf24b6fe729d379c733c473
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163097
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Diffstat (limited to 'emfio')
0 files changed, 0 insertions, 0 deletions