persistentstorage/dbms/ustor/US_INDEX.CPP
branchGCC_SURGE
changeset 26 c6f14f20ccfd
parent 0 08ec8eefde2f
equal deleted inserted replaced
23:38383aab3fb8 26:c6f14f20ccfd
   338 // and the column set provided
   338 // and the column set provided
   339 //
   339 //
   340 CDbStoreIndex::HKey* CDbStoreIndex::HKey::NewL(const CDbKey& aKey,const HDbColumnSet& aColumns)
   340 CDbStoreIndex::HKey* CDbStoreIndex::HKey::NewL(const CDbKey& aKey,const HDbColumnSet& aColumns)
   341 	{
   341 	{
   342 	TInt count=aKey.Count();
   342 	TInt count=aKey.Count();
   343 	HKey* self=(HKey*)User::AllocLC(_FOFF(HKey,iKeys[count]));
   343 	HKey* self=(HKey*)User::AllocLC(_FOFF_DYNAMIC(HKey,iKeys[count]));
   344 	if (aKey.IsUnique())
   344 	if (aKey.IsUnique())
   345 		new(self) HKey;
   345 		new(self) HKey;
   346 	else
   346 	else
   347 		new(self) HDupKey;
   347 		new(self) HDupKey;
   348 	self->iTextOps=&TTextOps::Ops(aKey.Comparison());
   348 	self->iTextOps=&TTextOps::Ops(aKey.Comparison());