style: use Object instead of dynamic

This commit is contained in:
Aleksey Kulikov 2021-10-13 16:10:18 +03:00
parent 1972c6d1ab
commit beed516c89
13 changed files with 84 additions and 56 deletions

View file

@ -72,10 +72,10 @@ void apply({
final error = libgit2.git_stash_apply(repoPointer, index, options);
for (final p in pathPointers) {
for (final p in pathPointers as List) {
calloc.free(p);
}
calloc.free(strArray);
calloc.free(strArray as Pointer);
calloc.free(optsC);
calloc.free(options);
@ -127,10 +127,10 @@ void pop({
final error = libgit2.git_stash_pop(repoPointer, index, options);
for (final p in pathPointers) {
for (final p in pathPointers as List) {
calloc.free(p);
}
calloc.free(strArray);
calloc.free(strArray as Pointer);
calloc.free(optsC);
calloc.free(options);