[FIX]: copied data should be const
Merge pull request #7511 from Mazyod/const-data-copy

[FIX]: copied data should be const