What's the point of using "c->deleteSelected()" instead of "delete c"?

What is that you're trying to achieve? Maybe there's a better way to do it...