videoio: fixed MSVC warning in test

pull/24087/head
Maksim Shabunin 2 years ago
parent 0323761ea6
commit e0e537d94e
  1. 2
      modules/videoio/test/test_precomp.hpp

@ -61,7 +61,7 @@ inline std::string fourccToStringSafe(int fourcc)
{
std::string res = fourccToString(fourcc);
// TODO: return hex values for invalid characters
std::transform(res.begin(), res.end(), res.begin(), [](uint8_t c) { return (c >= '0' && c <= 'z') ? c : (c == ' ' ? '_' : 'x'); });
std::transform(res.begin(), res.end(), res.begin(), [](char c) -> char { return (c >= '0' && c <= 'z') ? c : (c == ' ' ? '_' : 'x'); });
return res;
}

Loading…
Cancel
Save