diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-09-24 06:31:02 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-09-24 07:45:57 +0200 |
commit | 0331ddf28f81d265bbb31fa58e9de9091d2cd904 (patch) | |
tree | 317f9d67318545400d6cfd1d2f6cc1719c4a2bd9 /build-aux/qmi-codegen/VariableArray.py | |
parent | e853e761db01e0677ebfd165b21cb5af1054e621 (diff) | |
download | external_libqmi-0331ddf28f81d265bbb31fa58e9de9091d2cd904.zip external_libqmi-0331ddf28f81d265bbb31fa58e9de9091d2cd904.tar.gz external_libqmi-0331ddf28f81d265bbb31fa58e9de9091d2cd904.tar.bz2 |
qmi-codegen: ensure helper methods get always generated
For those variables which are containers of other variables (struct, sequence
and array), ensure we call `emit_helper_methods()' in order to generate variable
specific dispose() helpers and such.
This fixes the case of nested arrays of structs (arrays of structs with arrays of
structs whithin).
Diffstat (limited to 'build-aux/qmi-codegen/VariableArray.py')
-rw-r--r-- | build-aux/qmi-codegen/VariableArray.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/build-aux/qmi-codegen/VariableArray.py b/build-aux/qmi-codegen/VariableArray.py index 9a647bf..47ff6ff 100644 --- a/build-aux/qmi-codegen/VariableArray.py +++ b/build-aux/qmi-codegen/VariableArray.py @@ -91,6 +91,8 @@ class VariableArray(Variable): Emits the code to clear the element of the array """ def emit_helper_methods(self, hfile, cfile): + self.array_element.emit_helper_methods(hfile, cfile) + # No need for the clear func if no need to dispose the contents if self.array_element.needs_dispose == False: return |