use C++11 iteration and simplify cast
use C++11 iteration and simplify cast

Change-Id: I3de5f37adfa0d3d46d9cbc1ce74205750357c481

JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core