persistentstorage/sql/SRC/Server/SqlSrvConfig.cpp
changeset 55 44f437012c90
parent 31 ba1c4f4a893f
equal deleted inserted replaced
51:7d4490026038 55:44f437012c90
   463 	//config file (which there shouldn't be) then the highest version
   463 	//config file (which there shouldn't be) then the highest version
   464 	//will be returned
   464 	//will be returned
   465 	for(TInt i = aDirEntries.Count() - 1; i >= 0; --i)
   465 	for(TInt i = aDirEntries.Count() - 1; i >= 0; --i)
   466 		{
   466 		{
   467 		const TEntry& entry = aDirEntries[i];
   467 		const TEntry& entry = aDirEntries[i];
   468 		if(!entry.IsDir())
   468 		__ASSERT_DEBUG(!entry.IsDir(), __SQLPANIC(ESqlPanicInternalError));
   469 			{
   469 		HBufC* filename = entry.iName.AllocLC();
   470 			HBufC* filename = entry.iName.AllocLC();
   470 		iConfigFileNames.AppendL(filename);
   471 			iConfigFileNames.AppendL(filename);
   471 		CleanupStack::Pop(); // filename
   472 			CleanupStack::Pop(); // filename
       
   473 			}
       
   474 		}
   472 		}
   475 	}
   473 	}
   476 	
   474 	
   477 //Finds the configuration file corresponding to the given database, if one exists.
   475 //Finds the configuration file corresponding to the given database, if one exists.
   478 //The database filename including the extension is passed as a parameter - for example,
   476 //The database filename including the extension is passed as a parameter - for example,