tdf#39440 reduce variable scope, adapt indentation
tdf#39440 reduce variable scope, adapt indentation

This addresses a cppcheck "variableScope" warning and adapts the
indentation of some code lines according to the surrounding code.

Change-Id: I76eca59a808740ab0366dd41c889a6ef19a2436d
Reviewed-on: https://gerrit.libreoffice.org/17923
Tested-by: Jenkins <5a4fe08359c7f97380e408c717ef42c86939cd86@libreoffice.org>
Reviewed-by: Noel Grandin <43cf663cd6d200b6fda42cd74c2a9550f05ea5d0@gmail.com>

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