const changed to var due to build issues on windows

Merged Shridhar I. Patil requested to merge sp_some_fixes into devbranch

const changed to var due to build issues on windows

Merge request reports