[Common] Fixing Coverity issues: AUTO_CAUSES_COPY