Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
savoirfairelinux
jami-daemon
Commits
49a1d617
Commit
49a1d617
authored
Aug 14, 2020
by
Adrien Béraud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jni: reserve size for type conversion
Change-Id: I9dfa4ea09f34f4cb78820e1bcc5f6e9e3999b91b
parent
79df3f43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
bin/jni/jni_interface.i
bin/jni/jni_interface.i
+1
-1
No files found.
bin/jni/jni_interface.i
View file @
49a1d617
...
...
@@ -148,7 +148,7 @@ namespace std {
%
typemap
(
javacode
)
vector
<
map
<
string
,
string
>
>
%
{
public
java
.
util
.
ArrayList
<
java
.
util
.
Map
<
String
,
String
>>
toNative
()
{
java
.
util
.
ArrayList
<
java
.
util
.
Map
<
String
,
String
>>
out
=
new
java
.
util
.
ArrayList
<>
()
;
java
.
util
.
ArrayList
<
java
.
util
.
Map
<
String
,
String
>>
out
=
new
java
.
util
.
ArrayList
<>
(
size
()
)
;
for
(
int
i
=
0
;
i
<
size
()
;
++
i
)
{
out
.
add
(
get
(
i
)
.
toNative
())
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment