Fixed coverity for ov::Any (#16647)

This commit is contained in:
Ilya Churaev 2023-03-30 17:12:50 +04:00 committed by GitHub
parent 961a99586a
commit b3503c8b7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -217,13 +217,13 @@ void Read<std::tuple<unsigned int, unsigned int, unsigned int>>::operator()(
} }
void Read<AnyMap>::operator()(std::istream& is, AnyMap& map) const { void Read<AnyMap>::operator()(std::istream& is, AnyMap& map) const {
std::string key, value;
char c; char c;
is >> c; is >> c;
OPENVINO_ASSERT(c == '{', "Failed to parse ov::AnyMap. Starting symbols is not '{', it's ", c); OPENVINO_ASSERT(c == '{', "Failed to parse ov::AnyMap. Starting symbols is not '{', it's ", c);
while (c != '}') { while (c != '}') {
std::string key, value;
std::getline(is, key, ':'); std::getline(is, key, ':');
size_t enclosed_container_level = 0; size_t enclosed_container_level = 0;