CppTools: Do not duplicate function overrides entries

When function's class is the same as the static class

Change-Id: Ifb509b996b4628c3b56d7540fd133ef370713214
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>