equal
deleted
inserted
replaced
114 TInt aIndex) |
114 TInt aIndex) |
115 { |
115 { |
116 COM_TRACE_( "[AccFW: ACCPOLICY] TAccPolGenericIDArrayAccessor::RemoveIndexFromGenericIDArray()" ); |
116 COM_TRACE_( "[AccFW: ACCPOLICY] TAccPolGenericIDArrayAccessor::RemoveIndexFromGenericIDArray()" ); |
117 |
117 |
118 TInt iArrayCount( aGenericIDArray.Count() ); |
118 TInt iArrayCount( aGenericIDArray.Count() ); |
119 TInt i(aIndex); |
119 TInt i(aIndex); |
120 for ( ; i < (iArrayCount-1); ++i ) |
120 |
121 { |
121 if( (iArrayCount > 0) && (i >= 0) ) |
122 aGenericIDArray.iGenericIDArray[i] = aGenericIDArray.iGenericIDArray[i+1]; |
122 { |
123 } |
123 for ( ; i < (iArrayCount-1); ++i ) |
124 TAccPolGenericID emptyID; |
124 { |
125 aGenericIDArray.iGenericIDArray[i] = emptyID; |
125 aGenericIDArray.iGenericIDArray[i] = aGenericIDArray.iGenericIDArray[i+1]; |
|
126 } |
|
127 TAccPolGenericID emptyID; |
|
128 aGenericIDArray.iGenericIDArray[i] = emptyID; |
|
129 } |
126 |
130 |
127 COM_TRACE_( "[AccFW: ACCPOLICY] TAccPolGenericIDArrayAccessor::RemoveIndexFromGenericIDArray() - return void" ); |
131 COM_TRACE_( "[AccFW: ACCPOLICY] TAccPolGenericIDArrayAccessor::RemoveIndexFromGenericIDArray() - return void" ); |
128 } |
132 } |
129 |
133 |
130 |
134 |