ReweightUtils: Fix cppcheck warnings.
Avoid sprintf. Prefer starts_with to find. Pass containers by const reference, not by value. Prefer to initialize class members in an initialization list.
Avoid sprintf. Prefer starts_with to find. Pass containers by const reference, not by value. Prefer to initialize class members in an initialization list.