* [processing] Fix atlas export relying on predefined scale for atlas-controlled map items
* De-duplicate code, add a QgsLayoutUtils::predefinedScale function
Checks whether a function declaration has parameters that are
top level const.
const values in declarations do not affect the signature of a
function, so they should not be put there.