[master] use a separate object to pass to a function instead of a temporary
some compilers claim it causes a copy whie it's defined non copyable, triggering an error. this fixes some build failure reported by the bots. should mostly trivial, so committing at my discretion.
Showing with 15 additions and 13 deletions