[indexer] Simplified Classificator::GetTypeByReadableObjectName

#+
This commit is contained in:
Maksim Andrianov 2019-10-15 03:35:18 +03:00 committed by Tatiana Yan
parent 191b59f201
commit d41499279c

View file

@ -415,9 +415,7 @@ uint32_t Classificator::GetTypeByPath(initializer_list<char const *> const & lst
uint32_t Classificator::GetTypeByReadableObjectName(string const & name) const
{
ASSERT(!name.empty(), ());
vector<string> v;
strings::Tokenize(name, "-", [&v] (string const & s) { v.push_back(s); } );
return GetTypeByPathSafe(v);
return GetTypeByPathSafe(strings::Tokenize(name, "-"));
}
void Classificator::ReadTypesMapping(istream & s)