Fix uncaught exception in footprint and symbol library table parsers.

Fixes Coverity CID 154580
Fixes Coverity CID 154581
Fixes Coverity CID 154582
Fixes Coverity CID 154583
Fixes Coverity CID 154584
Fixes Coverity CID 154585
This commit is contained in:
Wayne Stambaugh
2017-03-17 07:56:47 -04:00
parent 996cba7e7f
commit 9ddb4fe67e
6 changed files with 43 additions and 28 deletions
+5 -6
View File
@@ -64,7 +64,7 @@ FP_LIB_TABLE::FP_LIB_TABLE( FP_LIB_TABLE* aFallBackTable ) :
}
void FP_LIB_TABLE::Parse( LIB_TABLE_LEXER* in ) throw()
void FP_LIB_TABLE::Parse( LIB_TABLE_LEXER* in )
{
T tok;
@@ -185,15 +185,14 @@ void FP_LIB_TABLE::Parse( LIB_TABLE_LEXER* in ) throw()
}
void FP_LIB_TABLE::Format( OUTPUTFORMATTER* out, int nestLevel ) const
throw()
void FP_LIB_TABLE::Format( OUTPUTFORMATTER* aOutput, int aIndentLevel ) const
{
out->Print( nestLevel, "(fp_lib_table\n" );
aOutput->Print( aIndentLevel, "(fp_lib_table\n" );
for( LIB_TABLE_ROWS_CITER it = rows.begin(); it != rows.end(); ++it )
it->Format( out, nestLevel+1 );
it->Format( aOutput, aIndentLevel+1 );
out->Print( nestLevel, ")\n" );
aOutput->Print( aIndentLevel, ")\n" );
}