[GLU32] Fix indentation

Fixes GCC 8 warnings:
dll/opengl/glu32/src/libnurbs/internals/subdivider.cc:852:2: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
  if( jarc->pwlArc ) jarc->pwlArc->deleteMe( pwlarcpool ); jarc->pwlArc = 0;
  ^~
dll/opengl/glu32/src/libnurbs/internals/subdivider.cc:852:59: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  if( jarc->pwlArc ) jarc->pwlArc->deleteMe( pwlarcpool ); jarc->pwlArc = 0;
                                                           ^~~~
This commit is contained in:
Timo Kreuzer 2019-04-28 20:56:40 +02:00 committed by Hervé Poussineau
parent 207a0f520e
commit 95269bc8d1
2 changed files with 6 additions and 3 deletions

View file

@ -62,7 +62,8 @@ Quilt::deleteMe( Pool& p )
{
for( Quiltspec *q=qspec; q != eqspec; q++ ) {
#if 1
if( q->breakpoints) delete[] q->breakpoints; q->breakpoints = 0;
if( q->breakpoints) delete[] q->breakpoints;
q->breakpoints = 0;
#else
if( q->breakpoints) {
delete[] q->breakpoints;

View file

@ -849,8 +849,10 @@ Subdivider::freejarcs( Bin& bin )
Arc_ptr jarc;
while( (jarc = bin.removearc()) != NULL ) {
if( jarc->pwlArc ) jarc->pwlArc->deleteMe( pwlarcpool ); jarc->pwlArc = 0;
if( jarc->bezierArc) jarc->bezierArc->deleteMe( bezierarcpool ); jarc->bezierArc = 0;
if( jarc->pwlArc ) jarc->pwlArc->deleteMe( pwlarcpool );
jarc->pwlArc = 0;
if( jarc->bezierArc) jarc->bezierArc->deleteMe( bezierarcpool );
jarc->bezierArc = 0;
jarc->deleteMe( arcpool );
}
}