mirror of
https://github.com/reactos/reactos.git
synced 2025-05-28 21:48:19 +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++ ) {
|
for( Quiltspec *q=qspec; q != eqspec; q++ ) {
|
||||||
#if 1
|
#if 1
|
||||||
if( q->breakpoints) delete[] q->breakpoints; q->breakpoints = 0;
|
if( q->breakpoints) delete[] q->breakpoints;
|
||||||
|
q->breakpoints = 0;
|
||||||
#else
|
#else
|
||||||
if( q->breakpoints) {
|
if( q->breakpoints) {
|
||||||
delete[] q->breakpoints;
|
delete[] q->breakpoints;
|
||||||
|
|
|
@ -849,8 +849,10 @@ Subdivider::freejarcs( Bin& bin )
|
||||||
|
|
||||||
Arc_ptr jarc;
|
Arc_ptr jarc;
|
||||||
while( (jarc = bin.removearc()) != NULL ) {
|
while( (jarc = bin.removearc()) != NULL ) {
|
||||||
if( jarc->pwlArc ) jarc->pwlArc->deleteMe( pwlarcpool ); jarc->pwlArc = 0;
|
if( jarc->pwlArc ) jarc->pwlArc->deleteMe( pwlarcpool );
|
||||||
if( jarc->bezierArc) jarc->bezierArc->deleteMe( bezierarcpool ); jarc->bezierArc = 0;
|
jarc->pwlArc = 0;
|
||||||
|
if( jarc->bezierArc) jarc->bezierArc->deleteMe( bezierarcpool );
|
||||||
|
jarc->bezierArc = 0;
|
||||||
jarc->deleteMe( arcpool );
|
jarc->deleteMe( arcpool );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue