mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[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:
parent
207a0f520e
commit
95269bc8d1
2 changed files with 6 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue