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