svtools,svx: prefer passing OUString and OString by reference

Change-Id: Iceb2cbcda9d8ddb4ee00db9365c751e0e5d8b3a6