cmSystemTools: Let `GetFileFormat` accept a `std::stding const&`

The `const char*` used formerly was converted to a `std::string`
internally anyway.
4 files changed