upnpmediaserver/contentdirectoryservice/src/upnpelementfactory.cpp
changeset 32 3785f754ee62
parent 27 03808033c9a2
child 38 5360b7ddc251
--- a/upnpmediaserver/contentdirectoryservice/src/upnpelementfactory.cpp	Wed Aug 18 10:02:50 2010 +0300
+++ b/upnpmediaserver/contentdirectoryservice/src/upnpelementfactory.cpp	Fri Sep 17 08:31:21 2010 +0300
@@ -144,6 +144,7 @@
 
 TUpnpErrorCode CUpnpElementFactory::ValidateNewObjectL( const TXmlEngElement& aNewElement, TBool aNew, TBool aLocalSharing)
 {
+    /*
     TInt i;    
     TPtrC8 objectType = KItem();
 
@@ -606,7 +607,7 @@
     // * has the all required fields (if some were missing, they are added)
     // * had a proper xml structure (_not_ using UpnpDomInterface:: functions that do not care)
     // * has for sure a mostly proper object structure 
-
+*/
     return EUndefined;
 }
 // -----------------------------------------------------------------------------
@@ -923,7 +924,7 @@
         RXmlEngNodeList<TXmlEngElement> children;
         CleanupClosePushL(children);
         root.GetChildElements( children );
-        children.HasNext();
+    //    children.HasNext();
         CleanupStack::PopAndDestroy(&children);
         return children.Next();
     }
@@ -943,7 +944,7 @@
     ret.OpenL(iDOMImpl);
     CleanupClosePushL(ret);
 
-    if( aDocument.IsNull() || aDocument.DocumentElement().IsNull() )
+ /*    if( aDocument.IsNull() || aDocument.DocumentElement().IsNull() )
     {
         User::Leave( KErrNotFound );            
     }
@@ -963,7 +964,7 @@
         CleanupStack::PopAndDestroy(&children);
     }
     ret.SetDocumentElement(active);
-    
+   */    
     CleanupStack::Pop(&ret);
     
     return ret;
@@ -1209,7 +1210,7 @@
         // if such type found
         if ( objectDescription.NotNull() ) 
         {
-            aArray.Append( objectDescription );
+            aArray.AppendL( objectDescription );
         }
         /* This case is valid for any numeric value of containerID used in CreateObject() action
         *  We do some checking starting from 3rd string of <upnp:class> element, if the string isn't