Use size_t consistently, constify, reduce scope

Change-Id: Ie5de70645becc5ac584f1b3ffe6048969d2a19a9
sal_uInt16: constify, avoid temporaries, reduce scope

Change-Id: I8033385b5edd6baa7b64ef77ca242d76f6bf30f3
sal_uInt16 to size_t, constify, avoid temporaries

Change-Id: I1208f1e98a0ee09263babeffa7554e94ed455434
sal_uInt16: constify, simplify, avoid temporaries

Change-Id: I4eaf9910eec073fad5dac6722661383253912c10
Group common code into a local helper function

Change-Id: Idc81a30787d09fb8008355251aad282df981cbbe
sal_uInt16: avoid unnecessary casts, constify

Change-Id: Ia9bf83054d08d73711bb3f6e83d316ff55e4798c
Avoid unneeded downcasts, constify

Change-Id: Iefd16f2b1d03a0fcd4745d3dd5622f189f1d4492
Make GetDefaultFontHeight() local

Change-Id: I91dad2b1f806a1b7fab823e590ff97121ad5db31
Group some more common code and reduce casts

Change-Id: Ib2f23f098377a07237cdba973edd8e854db05625
sal_uInt16: use more proper types, avoid downcasts/temporaries

Change-Id: Ib76af3f664dc259e8596d33492bd078c9e4536bd
sal_uInt16 to size_t

Change-Id: I64bc6daa0585686c4d337a5c32ed7009b96fae0c
Avoid copying containers for local helper functions

Change-Id: I9ba47e8a53a37cbeb2e8d0e197094531edbaeb4c
Reserve vector capacity in advance + minor optimizations

Change-Id: I04eea6825c02ea0c076b525e58a1dc86dd290b64
Reserve vector capacity in advance and avoid copying it

Change-Id: I98d1d6fdf6c4646486a751c34e79bddf771b83a9
Avoid lookup table: just one single special case

Caller uses indexes from 1 to GetFormMax(), that is AUTH_TYPE_END+1
for TOX_AUTHORITIES and is smaller (23) that the number of entries
in the lookup table (30). The index is compensated for this offset,
so that the following check for special case AUTH_TYPE_WWW is
correct, but no checks on maximum value are performed since it
should have never reached the last special item of the table anyway.

Change-Id: Idd85e509da1e8ab4cdda0070f513c4e07008d410
Improve readability by early bailout

Change-Id: Ie6616f886d58c756df10ae917ced07c82cae7f61
sal_uInt16 to sal_Int32

Change-Id: Ie88f25149e12fecb4f932954ddbe7adc868acfc2
Avoid temporary OUStrings

Change-Id: If178bdbf13bbea3eb810267f207855bf6e2a6bda
Reorder data members and initialize all of them

Change-Id: I42cf63602fa5f15d199fc70e9c343f481e8668e2
sal_uInt16 to sal_Int32

Change-Id: Ib254f645718e461648a28ef0a9e0875a077b32f6