[GLU32] Fix indentation
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Sun, 28 Apr 2019 18:56:40 +0000 (20:56 +0200)
committerHervé Poussineau <hpoussin@reactos.org>
Mon, 27 May 2019 11:22:40 +0000 (13:22 +0200)
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;
                                                           ^~~~

dll/opengl/glu32/src/libnurbs/internals/quilt.cc
dll/opengl/glu32/src/libnurbs/internals/subdivider.cc

index d51188a..b99f92f 100644 (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;  
index d003d1e..e12d063 100644 (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 );
     }
 }