Fix two types of Cppcheck warnings
- Use
std::stringresize(n)instead ofsubstr(0, n) - Add many
explicits for constructors with a single non-scalar argument
Edited by Christoph Grüninger
std::string resize(n) instead of substr(0, n)
explicits for constructors with a single non-scalar argument