add a few const qualifier
Merge pull request #2419 from santazhang/use-const

add a few const qualifier