--- a/meetingrequest/mrgui/mrfieldbuilderplugin/src/cesmrvieweralarmtimefield.cpp Mon Jun 21 15:20:54 2010 +0300
+++ b/meetingrequest/mrgui/mrfieldbuilderplugin/src/cesmrvieweralarmtimefield.cpp Thu Jul 15 18:19:25 2010 +0300
@@ -78,12 +78,10 @@
void CESMRViewerAlarmTimeField::ConstructL()
{
FUNC_LOG;
- iLabel = CMRLabel::NewL();
- iLabel->SetParent( this );
+ iLabel = CMRLabel::NewL( this );
CESMRField::ConstructL( iLabel ); // ownership transfered
- iIcon = CMRImage::NewL( NMRBitmapManager::EMRBitmapAlarmClock );
- iIcon->SetParent( this );
+ iIcon = CMRImage::NewL( NMRBitmapManager::EMRBitmapAlarmClock, this );
}
// ---------------------------------------------------------------------------
@@ -256,8 +254,10 @@
delete iLockIcon;
iLockIcon = NULL;
- iLockIcon = CMRImage::NewL( NMRBitmapManager::EMRBitmapLockField, ETrue );
- iLockIcon->SetParent( this );
+ iLockIcon = CMRImage::NewL(
+ NMRBitmapManager::EMRBitmapLockField,
+ this,
+ ETrue );
}
// ---------------------------------------------------------------------------