Fix Wrange-loop-construct
Fix Wrange-loop-construct

Summary:
generatemhaplugindoc: Fix unnecessary copy in loop causing Wrange-loop-construct
Closes T1109

Test Plan: Compile using clang10. Verify warning appearing before and disappearing after fix

Reviewers: tobias

Reviewed By: tobias

Maniphest Tasks: T1109

Differential Revision: https://dev.openmha.org/D396

HoerTech-gGmbH/openMHA,HoerTech-gGmbH/openMHA,HoerTech-gGmbH/openMHA,HoerTech-gGmbH/openMHA,HoerTech-gGmbH/openMHA,HoerTech-gGmbH/openMHA,HoerTech-gGmbH/openMHA,HoerTech-gGmbH/openMHA