Fossil SCM
Fix a C++-ism in report.c.
Commit
9e2d2676a4074cc4aee65892b50bff74e3539ea5
Parent
3f706b92a55c53a…
1 file changed
+1
-1
+1
-1
| --- src/report.c | ||
| +++ src/report.c | ||
| @@ -52,13 +52,13 @@ | ||
| 52 | 52 | }else{ |
| 53 | 53 | db_prepare(&q, "SELECT rn, title, owner FROM reportfmt ORDER BY title"); |
| 54 | 54 | @ <p>Choose a report format from the following list:</p> |
| 55 | 55 | @ <ol> |
| 56 | 56 | while( db_step(&q)==SQLITE_ROW ){ |
| 57 | - rn = db_column_int(&q, 0); | |
| 58 | 57 | const char *zTitle = db_column_text(&q, 1); |
| 59 | 58 | const char *zOwner = db_column_text(&q, 2); |
| 59 | + rn = db_column_int(&q, 0); | |
| 60 | 60 | cnt++; |
| 61 | 61 | @ <li value="%d(cnt)"><a href="rptview?rn=%d(rn)" |
| 62 | 62 | @ rel="nofollow">%h(zTitle)</a> |
| 63 | 63 | if( g.okWrite && zOwner && zOwner[0] ){ |
| 64 | 64 | @ (by <i>%h(zOwner)</i>) |
| 65 | 65 |
| --- src/report.c | |
| +++ src/report.c | |
| @@ -52,13 +52,13 @@ | |
| 52 | }else{ |
| 53 | db_prepare(&q, "SELECT rn, title, owner FROM reportfmt ORDER BY title"); |
| 54 | @ <p>Choose a report format from the following list:</p> |
| 55 | @ <ol> |
| 56 | while( db_step(&q)==SQLITE_ROW ){ |
| 57 | rn = db_column_int(&q, 0); |
| 58 | const char *zTitle = db_column_text(&q, 1); |
| 59 | const char *zOwner = db_column_text(&q, 2); |
| 60 | cnt++; |
| 61 | @ <li value="%d(cnt)"><a href="rptview?rn=%d(rn)" |
| 62 | @ rel="nofollow">%h(zTitle)</a> |
| 63 | if( g.okWrite && zOwner && zOwner[0] ){ |
| 64 | @ (by <i>%h(zOwner)</i>) |
| 65 |
| --- src/report.c | |
| +++ src/report.c | |
| @@ -52,13 +52,13 @@ | |
| 52 | }else{ |
| 53 | db_prepare(&q, "SELECT rn, title, owner FROM reportfmt ORDER BY title"); |
| 54 | @ <p>Choose a report format from the following list:</p> |
| 55 | @ <ol> |
| 56 | while( db_step(&q)==SQLITE_ROW ){ |
| 57 | const char *zTitle = db_column_text(&q, 1); |
| 58 | const char *zOwner = db_column_text(&q, 2); |
| 59 | rn = db_column_int(&q, 0); |
| 60 | cnt++; |
| 61 | @ <li value="%d(cnt)"><a href="rptview?rn=%d(rn)" |
| 62 | @ rel="nofollow">%h(zTitle)</a> |
| 63 | if( g.okWrite && zOwner && zOwner[0] ){ |
| 64 | @ (by <i>%h(zOwner)</i>) |
| 65 |