projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Standardize `!ptr` i/o `ptr == NULL`, `ptr` i/o `ptr != NULL`
[babeltrace.git]
/
src
/
plugins
/
text
/
details
/
obj-lifetime-mgmt.c
diff --git
a/src/plugins/text/details/obj-lifetime-mgmt.c
b/src/plugins/text/details/obj-lifetime-mgmt.c
index 9547d609cb08884095acb462415788518e7d7479..8da5cf162cef562b28237bba37ed04c069c1f6d5 100644
(file)
--- a/
src/plugins/text/details/obj-lifetime-mgmt.c
+++ b/
src/plugins/text/details/obj-lifetime-mgmt.c
@@
-97,7
+97,7
@@
bool details_need_to_write_meta_object(struct details_write_ctx *ctx,
details_tc_meta = g_hash_table_lookup(ctx->details_comp->meta, tc);
BT_ASSERT(details_tc_meta);
need_to_write =
details_tc_meta = g_hash_table_lookup(ctx->details_comp->meta, tc);
BT_ASSERT(details_tc_meta);
need_to_write =
-
g_hash_table_lookup(details_tc_meta->objects, obj) == NULL
;
+
!g_hash_table_lookup(details_tc_meta->objects, obj)
;
end:
return need_to_write;
end:
return need_to_write;
@@
-130,7
+130,7
@@
bool details_need_to_write_trace_class(struct details_write_ctx *ctx,
BT_ASSERT(ctx->details_comp->meta);
details_tc_meta = g_hash_table_lookup(ctx->details_comp->meta, tc);
BT_ASSERT(ctx->details_comp->meta);
details_tc_meta = g_hash_table_lookup(ctx->details_comp->meta, tc);
- need_to_write =
details_tc_meta == NULL
;
+ need_to_write =
!details_tc_meta
;
end:
return need_to_write;
end:
return need_to_write;
This page took
0.026336 seconds
and
4
git commands to generate.