harmonize use of const pointers