Skip to content

Commit 747ffae

Browse files
committed
DOC: Prefer using pre-increment over post-increment
Prefer using pre-increment over post-increment `for` loop local counters to match current ITK practice.
1 parent ce05540 commit 747ffae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SoftwareGuide/Latex/Appendices/CodingStyleGuide.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3073,7 +3073,7 @@ \section{Ternary Operator}
30733073
30743074
\small
30753075
\begin{minted}[baselinestretch=1,fontsize=\footnotesize,linenos=false,bgcolor=ltgray]{cpp}
3076-
for( unsigned int i = 0; j < ImageDimension; i++ )
3076+
for( unsigned int i = 0; j < ImageDimension; ++i )
30773077
{
30783078
const elementSign = ( m_Step[i] > 0 ) ? 1.0 : -1.0;
30793079
flipMatrix[i][i] = elementSign;
@@ -3086,7 +3086,7 @@ \section{Ternary Operator}
30863086
30873087
\small
30883088
\begin{minted}[baselinestretch=1,fontsize=\footnotesize,linenos=false,bgcolor=ltgray]{cpp}
3089-
for( unsigned int i = 0; j < ImageDimension; i++ )
3089+
for( unsigned int i = 0; j < ImageDimension; ++i )
30903090
{
30913091
if( m_Step[i] > 0 )
30923092
{

0 commit comments

Comments
 (0)