svgtopt/SVG/SVGImpl/src/SVGDocumentImpl.cpp
changeset 16 ca0ecbd73cb3
parent 0 d46562c3d99d
child 19 df65ec4f2d28
child 38 db5c883ad1c5
equal deleted inserted replaced
2:0c844a8549ae 16:ca0ecbd73cb3
   607 // ==========================================================================
   607 // ==========================================================================
   608 // Need method description
   608 // Need method description
   609 // ==========================================================================
   609 // ==========================================================================
   610 TDesC* CSvgDocumentImpl::GetId(TInt index)
   610 TDesC* CSvgDocumentImpl::GetId(TInt index)
   611 {
   611 {
       
   612 				TDesC* id = NULL;
   612         RPointerArray<TDesC> ids;
   613         RPointerArray<TDesC> ids;
   613 
   614 
   614         FindAllIds( (CSvgElementImpl*)RootElement(), ids );
   615         FindAllIds( (CSvgElementImpl*)RootElement(), ids );
   615 
   616 
   616         if (index < ids.Count())
   617         if (index < ids.Count())
   617         {
   618         {
   618             return (ids[index]);
   619             id = ids[index];
   619         }
   620         }
   620 
   621 
   621         ids.Close();
   622         ids.Close();
   622 
   623 
   623     return NULL;
   624     return id;
   624 }
   625 }
   625 
   626 
   626 // ==========================================================================
   627 // ==========================================================================
   627 // // Return all elements of the given type
   628 // // Return all elements of the given type
   628 // ==========================================================================
   629 // ==========================================================================