--- a/ipsservices/ipssosplugin/src/ipsplgsyncstatehandler.cpp Fri Jul 02 15:55:16 2010 +0300
+++ b/ipsservices/ipssosplugin/src/ipsplgsyncstatehandler.cpp Fri Jul 09 12:17:13 2010 +0300
@@ -73,7 +73,7 @@
if ( ( iPlugin.PluginId() == aPluginId ) &&
( aEvent == KIpsSosEmailSyncStarted || aEvent == KIpsSosEmailSyncCompleted ) )
{
- AppendMailboxToSyncingMailbox( aMailbox, aEvent );
+ AppendMailboxToSyncingMailboxL( aMailbox, aEvent );
}
}
@@ -210,7 +210,10 @@
{
ipsState = KIpsSosEmailSyncCompleted;
}
- TInt count = iSyncingMailboxes.Append(
+ // the next call, FindMailbox, handles the case
+ // if .Append is failing, thus the return value can
+ // be ignored
+ TInt ignore = iSyncingMailboxes.Append(
TIpsMailboxState( aMailbox, ipsState ) );
index = FindMailbox( aMailbox );
}
@@ -237,14 +240,14 @@
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
-void CIpsPlgSyncStateHandler::AppendMailboxToSyncingMailbox(
+void CIpsPlgSyncStateHandler::AppendMailboxToSyncingMailboxL(
TMsvId aMailbox, TInt aState )
{
FUNC_LOG;
TInt index = FindMailbox( aMailbox );
if ( index == KErrNotFound )
{
- iSyncingMailboxes.Append( TIpsMailboxState( aMailbox, aState ) );
+ iSyncingMailboxes.AppendL( TIpsMailboxState( aMailbox, aState ) );
}
else
{