GDTR find() overload for name only

This commit is contained in:
Pavel Kirienko
2015-03-16 20:18:36 +03:00
parent 670e8bda51
commit 14c176015a
3 changed files with 22 additions and 0 deletions
@@ -141,6 +141,16 @@ void GlobalDataTypeRegistry::freeze()
}
}
const DataTypeDescriptor* GlobalDataTypeRegistry::find(const char* name) const
{
const DataTypeDescriptor* desc = find(DataTypeKindMessage, name);
if (desc == NULL)
{
desc = find(DataTypeKindService, name);
}
return desc;
}
const DataTypeDescriptor* GlobalDataTypeRegistry::find(DataTypeKind kind, const char* name) const
{
if (!name)