|
From: Frank V. C. <fr...@us...> - 2001-04-19 03:44:44
|
Update of /cvsroot/corelinux/clfw/src/testdrivers/exf2
In directory usw-pr-cvs1:/tmp/cvs-serv31108/src/testdrivers/exf2
Modified Files:
examp2.cpp
Log Message:
Final step before schemas go persist
Index: examp2.cpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/src/testdrivers/exf2/examp2.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** examp2.cpp 2001/04/12 11:56:53 1.5
--- examp2.cpp 2001/04/19 03:44:42 1.6
***************
*** 176,180 ****
aCatalog->createEntry(&args);
! SchemaPtr aSchema(NULLPTR);
return aSchema;
}
--- 176,194 ----
aCatalog->createEntry(&args);
! SchemaPtr aSchema(Schema::castDown(aCatalog->getEntry(&args)));
!
! //
! // We need to clean up the arguments
! //
! AttributePtr aPtr = Attribute::castDown( args.getElementAt(0) );
! FrameworkString::destroy( (FrameworkStringPtr)aPtr->getKey() );
! FrameworkString::destroy( (FrameworkStringPtr)aPtr->getValue() );
! Attribute::destroy( aPtr );
!
! aPtr = Attribute::castDown( args.getElementAt(1) );
! FrameworkString::destroy( (FrameworkStringPtr)aPtr->getKey() );
! FrameworkString::destroy( (FrameworkStringPtr)aPtr->getValue() );
! Attribute::destroy( aPtr );
!
return aSchema;
}
|