cppcheck: XPDFCore.cc

- Reduce variable scope
- Fix C-Style casting