diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-07-17 09:33:21 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-07-17 09:33:21 +0200 |
commit | 1234822c106f58fd5b3ddb70d28c2d39b4ff7b77 (patch) | |
tree | 76afec118254d62baa2eda80ad4c5a8d62dc8f1e | |
parent | c090c39a9cc92c171fa48c4d03646478cfb29bb6 (diff) |
qmi-codegen: mark variable as set only after really having set
The Variable-specific setter implementation may include some validity checks, so
it may happen that instead of setting the variable an error is emitted.
-rw-r--r-- | build-aux/qmi-codegen/Field.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build-aux/qmi-codegen/Field.py b/build-aux/qmi-codegen/Field.py index 37ac526..f9a8a46 100644 --- a/build-aux/qmi-codegen/Field.py +++ b/build-aux/qmi-codegen/Field.py @@ -198,8 +198,8 @@ class Field: '{\n' ' g_return_val_if_fail (self != NULL, FALSE);\n' '\n' - ' self->${variable_name}_set = TRUE;\n' '${variable_setter_imp}' + ' self->${variable_name}_set = TRUE;\n' '\n' ' return TRUE;\n' '}\n') |