Browse Source

Cleanup variable usage and assignment in gerber reader

pull/16/head
Ian McInerney 5 years ago
parent
commit
70a7d1bc7c
  1. 7
      gerbview/rs274x.cpp

7
gerbview/rs274x.cpp

@ -271,9 +271,10 @@ bool GERBER_FILE_IMAGE::ExecuteRS274XCommand( int aCommand, char* aBuff,
case 'M': // Sequence code (followed by one digit: the sequence len) case 'M': // Sequence code (followed by one digit: the sequence len)
// (sometimes found after the X,Y sequence) // (sometimes found after the X,Y sequence)
// Obscure option // Obscure option
code = *aText++;
aText++;
code = *aText;
if( ( *aText >= '0' ) && ( *aText<= '9' ) )
if( ( code >= '0' ) && ( code <= '9' ) )
aText++; // skip the digit aText++; // skip the digit
break; break;
@ -343,7 +344,7 @@ bool GERBER_FILE_IMAGE::ExecuteRS274XCommand( int aCommand, char* aBuff,
break; break;
case MIRROR_IMAGE: // command %MIA0B0*%, %MIA0B1*%, %MIA1B0*%, %MIA1B1*% case MIRROR_IMAGE: // command %MIA0B0*%, %MIA0B1*%, %MIA1B0*%, %MIA1B1*%
m_MirrorA = m_MirrorB = 0;
m_MirrorA = m_MirrorB = false;
while( *aText && *aText != '*' ) while( *aText && *aText != '*' )
{ {

Loading…
Cancel
Save