Fixed coverity for ov::Any (#16647)
This commit is contained in:
parent
961a99586a
commit
b3503c8b7a
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user