const changed to var due to build issues on windows

Merged Shridhar I. Patil requested to merge sp_some_fixes into devbranch
  1. Jul 16, 2019