Const correctness for src pointer. Remove all constness related warnings in