Mercurial > octave
diff libinterp/corefcn/gl-render.cc @ 25688:b2917b7858ba
maint: Use Octave convention for spacing of C++ cast statements.
* PopupMenuControl.cc, __dsearchn__.cc, __magick_read__.cc, cellfun.cc,
gl-render.cc, ls-mat5.cc, mex.cc, tsearch.cc, ccolamd.cc, dmperm.cc,
ov-bool-mat.h, ov-bool-sparse.cc, ov-cx-mat.cc, ov-cx-sparse.cc,
ov-fcn-handle.cc, ov-flt-cx-mat.cc, ov-flt-re-mat.cc, ov-range.cc,
ov-re-mat.cc, ov-re-sparse.cc, jit-typeinfo.cc, jit-typeinfo.h, CDiagMatrix.cc,
CSparse.cc, MatrixType.h, chNDArray.cc, dDiagMatrix.cc, dNDArray.cc,
dSparse.cc, fCDiagMatrix.cc, fDiagMatrix.cc, fNDArray.cc, eigs-base.cc,
oct-fftw.cc, sparse-chol.cc, url-transfer.cc: Change cast statements
to use no space between cast and '<...>' and one space before the opening '('.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 26 Jul 2018 16:32:12 -0700 |
parents | cb1606f78f6b |
children | 218feb083dcc |
line wrap: on
line diff
--- a/libinterp/corefcn/gl-render.cc Thu Jul 26 14:44:36 2018 -0700 +++ b/libinterp/corefcn/gl-render.cc Thu Jul 26 16:32:12 2018 -0700 @@ -4342,7 +4342,7 @@ if (sz > 0 && sz < 3) sz = 3; - int div = static_cast <int> (M_PI * sz / 12); + int div = static_cast<int> (M_PI * sz / 12); if (! (div % 2)) div += 1; // ensure odd number for left/right symmetry div = std::max (div, 3); // ensure at least a few vertices are drawn @@ -4364,7 +4364,7 @@ break; case 'o': { - int div = static_cast <int> (M_PI * sz / 4); + int div = static_cast<int> (M_PI * sz / 4); if (! (div % 2)) div += 1; // ensure odd number for left/right symmetry div = std::max (div, 5); // ensure at least a few vertices are drawn