harvester/common/src/harvestercenreputil.cpp
branchRCL_3
changeset 7 3cebc1a84278
parent 0 c53acadfccc6
child 19 b73252188534
equal deleted inserted replaced
6:646a02f170b9 7:3cebc1a84278
    95 	RArray<TUint32> ignoredKeys;
    95 	RArray<TUint32> ignoredKeys;
    96 	CleanupClosePushL( ignoredKeys );
    96 	CleanupClosePushL( ignoredKeys );
    97 	TInt ret = repo->FindL( KIgnorePathPartialKey, KSearchMask, ignoredKeys );
    97 	TInt ret = repo->FindL( KIgnorePathPartialKey, KSearchMask, ignoredKeys );
    98 	
    98 	
    99 	TBuf<KMaxFileName> path;
    99 	TBuf<KMaxFileName> path;
   100 	const TInt count = ignoredKeys.Count();
   100 	for( TInt i = ignoredKeys.Count() - 1; i >=0; i-- )
   101 	for( TInt i=0;i<count;i++ )
       
   102 		{
   101 		{
   103 		const TInt error( repo->Get( ignoredKeys[i], path ) );
   102 		const TInt error( repo->Get( ignoredKeys[i], path ) );
   104 		if( error != KErrNone )
   103 		if( error != KErrNone )
   105 		    {
   104 		    {
   106 		    continue;
   105 		    continue;
   189 	repo->FindL( aPartialKey, KSearchMask, scanPathKeys );
   188 	repo->FindL( aPartialKey, KSearchMask, scanPathKeys );
   190 
   189 
   191 	TBuf<KMaxFileName> path;
   190 	TBuf<KMaxFileName> path;
   192 	const TInt count = scanPathKeys.Count();
   191 	const TInt count = scanPathKeys.Count();
   193 	aPaths.ReserveL( count );
   192 	aPaths.ReserveL( count );
   194 	for( TInt i = 0; i < count; i++ )
   193 	for( TInt i = count - 1; i >=0; i-- )
   195 		{
   194 		{
   196 	    const TInt error( repo->Get( scanPathKeys[i], path ) );
   195 	    const TInt error( repo->Get( scanPathKeys[i], path ) );
   197 	    if( error != KErrNone )
   196 	    if( error != KErrNone )
   198 	        {
   197 	        {
   199 	        continue;
   198 	        continue;
   213 	CleanupClosePushL( scanPathKeys );
   212 	CleanupClosePushL( scanPathKeys );
   214 
   213 
   215 	repo->FindL( aPartialKey, KSearchMask, scanPathKeys );
   214 	repo->FindL( aPartialKey, KSearchMask, scanPathKeys );
   216 
   215 
   217 	TBuf<KMaxFileName> path;
   216 	TBuf<KMaxFileName> path;
   218 	const TInt count = scanPathKeys.Count();
   217 	for( TInt i = scanPathKeys.Count() - 1; i >=0; i-- )
   219 	for( TInt i = 0; i < count; i++ )
       
   220 		{
   218 		{
   221 	    const TInt error( repo->Get( scanPathKeys[i], path ) );
   219 	    const TInt error( repo->Get( scanPathKeys[i], path ) );
   222 	    if( error != KErrNone )
   220 	    if( error != KErrNone )
   223 	        {
   221 	        {
   224 	        continue;
   222 	        continue;