equal
deleted
inserted
replaced
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()); |