Coverity enums

Fix coverity issues and remove FindObject(constTObject)