File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ void block_edges(Pix *t_pix, // thresholded image
57
57
58
58
std::unique_ptr<uint8_t []> bwline (new uint8_t [width]);
59
59
60
- uint8_t margin = WHITE_PIX;
60
+ const uint8_t margin = WHITE_PIX;
61
61
62
62
for (int y = tright.y () - 1 ; y >= bleft.y () - 1 ; y--) {
63
63
if (y >= bleft.y () && y < tright.y ()) {
@@ -149,7 +149,6 @@ void line_edges(int16_t x, // coord of line start
149
149
C_OUTLINE_IT* outline_it) {
150
150
CrackPos pos = {free_cracks, x, y };
151
151
int xmax; // max x coord
152
- int colour; // of current pixel
153
152
int prevcolour; // of previous pixel
154
153
CRACKEDGE *current; // current h edge
155
154
CRACKEDGE *newcurrent; // new h edge
@@ -160,7 +159,7 @@ void line_edges(int16_t x, // coord of line start
160
159
161
160
// do each pixel
162
161
for (; pos.x < xmax; pos.x ++, prevline++) {
163
- colour = *bwpos++; // current pixel
162
+ const int colour = *bwpos++; // current pixel
164
163
if (*prevline != nullptr ) {
165
164
// changed above
166
165
// change colour
You can’t perform that action at this time.
0 commit comments