[Github-comments] [geany/geany-plugins] Debugger: Fix cppcheck false positive warning (#1017)
Enrico Tröger
notifications at xxxxx
Sat Oct 17 09:37:11 UTC 2020
An alternative solution would be:
```c
while (widgets[i])
{
g_object_ref(*(widgets[i]));
gtk_container_remove(GTK_CONTAINER(gtk_widget_get_parent(*(widgets[i]))), *(widgets[i]));
i++;
}
```
to make `cppcheck` happy but I think the solution in this PR is more readable for humans.
The change in the second loop is not strictly necessary for `cppcheck` but is more consistent with the first loop where the same array is used.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/1017#issuecomment-710784771
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20201017/c78c0db4/attachment.htm>
More information about the Github-comments
mailing list