Group more code in local helper function and simplify it

Change-Id: I1d5c07bd9c67243cf22405fb4f6edb9202291091
This array can be static

Change-Id: Ide0f5df3430f246d5998637166e4e44e83566774
sal_uInt16 to sal_uInt16, constify

Change-Id: Iabb5662cfe135728ca77244032a93762cd7e1c93
Fix indentation/format

Change-Id: I8544a1a84f4812cdfae6a6aa5db7ea5576c956c2
Use more proper integer types, avoid temporaries and constify

Change-Id: Ia2b591641ab7c954f3b1c7d5f58b42927d974a58
Fix indentation/format

Change-Id: Ic1dbc6ba261da23be2a0a6f715cd79e68b168c6c
sal_uInt16 to size_t, avoid temporaries and hardcoded constants

Change-Id: I21bd116ec39ba865a881a5866d4227b094d3a249
Consistently use size_t and SAL_MAX_SIZE

Instead of a mix of sal_uIntPtr, sal_uLong, int, and so on.
Also change CONTAINER_ENTRY_NOTFOUND=ULONG_MAX to SAL_MAX_SIZE as
return value in case of failure and in the related tests.

Change-Id: Ie778a849253b4be84fbcdab9557b7c4240233927
Delete commented-out declaration of function members

Change-Id: I118b7a788ee62f75af8b7669cad285952f0e968a
These function members does not need to be virtual

Change-Id: I8ec3f297fbf9ff494d115d0400e890d568bdae7f
Remove pnMarkNum parameter: either NULL or pointed data is not read

Change-Id: I213a097616275765478a5f21a5f8e9645470a1e8
Just copy the boolean value

Change-Id: I158f4e9eddf7ea666613d56a79d014dd3cbf9931
Avoid redundant cehck and unneeded local scope

Change-Id: Ifd8359f709a3c11851673921f278b3055ea518c6
Remove repeated check

Change-Id: I2ed6326f97bf6c0eefb3d309405261ffd30681b9
Simplify loop

Change-Id: I100344543a6008f6f466d0cc5716001e5b6c1ddd
bDoInvalidate is always false

Change-Id: I0e22f509b90acc9d4c3d7efb5a428f15bd21317d
Consistently use size_t and SAL_MAX_SIZE

Change-Id: Ibab89984ec94556ec368653b6db50c6c2e380dec
Simplify by early bail-out

Change-Id: Id3789fd994b54813b6f72857a625b496c7a6eef0
Reserve vector capacity in advance

Change-Id: I2ee5913a274eecf86ad6bbf19b99e1fe61f0ade7