OUString optimizations

* Remove temporaries
* Remove concatenated appends
* Constify

Change-Id: I94db8071c69568818c94670a4b9c71ab31660ac9
Use getToken instead of indexOf and re-assignment

Change-Id: If91343c2334f03cd35f95b79b8e341c6ee355f62
Fix alignment

Change-Id: I8a1ba77649c862eab1f381c678689c435420140e
Remove empty branch in if statement

Change-Id: Ifa2713638369f8c77e58f4945570fd3faf137d93
Remove one more OUString concatenated append

Change-Id: I7d4d000560c6774ffb691c47f951a191f9a92fa9
sal_uInt16: to sal_Int32 and rework initialization

Change-Id: Ifd5d7a8fd792da9931995ae4982504b68afe8303
sal_uInt16 to sal_Int32/size_t and some rework

Change-Id: Iea599d8d8af6ad2655485dfb7973e73bd527377e
Use SAL_N_ELEMENTS for array size

Change-Id: Ie6eb631124f0bdbbff8a543babbc22bdd52c0afc
Rework SwFrmPage::GetAlignment

* Early bail-out
* Remove temporaries
* Some constification
* Don't check the same pointer twice

Change-Id: I10e19f8807872e16b6d1419f6a345b6343b17c94
sal_uInt16/short to sal_Int16 + minor optimizations

Change-Id: Ia75c12ecdcd33d2013e8c138dfcbb07b8be6a551
sal_uInt16 to size_t/sal_Int32

Change-Id: I49a479d1fca258d5d3e713454d84a2fcb6fd74c1
OUString: constify and remove unneeded casts

Change-Id: I89825bbb4b0255c5525bc4680194ab0ce37f7f7b
Remove unneeded (and probably wrong) cast to sal_Bool

Change-Id: I8fa169749922d1ea015c9009f5a54099bdf40f93
Constify and reduce scope

Change-Id: I42074930dd59875bea4f1b3c0d73400020ea7485
Remove consecutive appends + minor optimizations

Change-Id: I001d958763c5d9104ff9dd24a4d81828e00034c0
sal_uInt16: to sal_Int32/long, constify, reworked some casts

Change-Id: I81e13e42619d73346c63689bf4392f924348b4ae
Removed OSL_ENSURE since condition cannot happen

Change-Id: Ifa71ac9a56ea7ffb5491bdfabc4ec5473e85a02d
Check early bail-out before performing unrelated operations

Change-Id: I335a90070221153810e94938cfcfbfe10688071b
Do not evaluate the same expression 10 times

Change-Id: I3feb440e0013ba75b738e4110315c7034ef29639
OUString: remove temporaries and repeated expressions

Change-Id: I1d86be40c4bde4e8fb51c430c6416165655c055c