cppcheck: fix passedByValue defects

Fix pass-by-value cppcheck defects. Mostly affects std::string. Strictly speaking this modifies the public API of some classes but likely won't affect any clients.

Merge request reports

Loading