Skip to content

Commit 685abc9

Browse files
committed
pgedit: Change some variables from global to local ones
This fixes compiler warnings and a warning from LGTM: Poor global variable name 'pe'. Prefer longer, descriptive names [...] Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent 18f7ab7 commit 685abc9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/ccmain/pgedit.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,15 @@ enum ColorationMode {
100100
*
101101
*/
102102

103-
ScrollView* image_win;
104-
ParamsEditor* pe;
105-
bool stillRunning = false;
103+
static ScrollView* image_win;
104+
static ParamsEditor* pe;
105+
static bool stillRunning = false;
106106

107-
ScrollView* bln_word_window = nullptr; // baseline norm words
107+
static ScrollView* bln_word_window = nullptr; // baseline norm words
108108

109-
CMD_EVENTS mode = CHANGE_DISP_CMD_EVENT; // selected words op
109+
static CMD_EVENTS mode = CHANGE_DISP_CMD_EVENT; // selected words op
110110

111-
bool recog_done = false; // recog_all_words was called
111+
static bool recog_done = false; // recog_all_words was called
112112

113113
// These variables should remain global, since they are only used for the
114114
// debug mode (in which only a single Tesseract thread/instance will exist).

0 commit comments

Comments
 (0)