[GME-commit] GMESRC/GME/Parser MgaParser.cpp,1.23,1.24
gme-commit at list.isis.vanderbilt.edu
gme-commit at list.isis.vanderbilt.edu
Fri Jul 23 09:19:21 CDT 2004
Update of /var/lib/gme/GMESRC/GME/Parser
In directory braindrain:/tmp/cvs-serv27999/GME/Parser
Modified Files:
MgaParser.cpp
Log Message:
Resolver gracefully handles missing attributes
CVS User: volgy
Index: MgaParser.cpp
===================================================================
RCS file: /var/lib/gme/GMESRC/GME/Parser/MgaParser.cpp,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** MgaParser.cpp 19 Jul 2004 08:42:19 -0000 1.23
--- MgaParser.cpp 23 Jul 2004 13:19:18 -0000 1.24
***************
*** 1040,1046 ****
CComObjPtr<IMgaMetaAttribute> metaattr;
! COMTHROW( resolver->get_AttrByStr(fco, PutInBstrAttr(attributes, "kind"), PutOut(metaattr)) );
! if( metaattr == NULL )
{
GetCurrent().object = NULL;
--- 1040,1046 ----
CComObjPtr<IMgaMetaAttribute> metaattr;
! HRESULT hr = resolver->get_AttrByStr(fco, PutInBstrAttr(attributes, "kind"), PutOut(metaattr));
! if( FAILED(hr) || metaattr == NULL )
{
GetCurrent().object = NULL;
More information about the GME-commit
mailing list