--- a/homescreenpluginsrv/hspsmanager/src/hspsmaintenancehandler.cpp Thu Dec 17 08:54:17 2009 +0200
+++ b/homescreenpluginsrv/hspsmanager/src/hspsmaintenancehandler.cpp Thu Jan 07 12:55:39 2010 +0200
@@ -2542,9 +2542,7 @@
ChspsODT& aOdt,
ChspsDomDocument& aDom )
{
- TInt error;
ChspsDomNode* node = aOdt.DomDocument().RootNode();
-
ChspsDomNode* controlNode = &(FindNodeByTagL(KControlElement, *node ));
if( !controlNode )
@@ -2559,7 +2557,7 @@
{
return KErrNotFound;
}
-
+
TInt index = controlNode->ItemIndex( *settingsNode );
controlNode->DeleteChild(settingsNode);
@@ -2568,7 +2566,9 @@
ChspsDomNode* iterNode = iter->First();
ChspsDomNode* prevNode = NULL;
TBool jobDone = EFalse;
-
+
+ TInt error( KErrNotFound );
+
while( iterNode && !jobDone && iterNode != prevNode)
{
const TDesC8& name = iterNode->Name();
@@ -2590,8 +2590,8 @@
CleanupStack::PopAndDestroy( iter );
return error;
+ }
- }
// Service for updating plugin positions
// -----------------------------------------------------------------------------
//