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>
This commit is contained in:
Stefan Weil 2018-10-06 20:14:20 +02:00
parent 18f7ab751e
commit 685abc91f3

View File

@ -100,15 +100,15 @@ enum ColorationMode {
*
*/
ScrollView* image_win;
ParamsEditor* pe;
bool stillRunning = false;
static ScrollView* image_win;
static ParamsEditor* pe;
static bool stillRunning = false;
ScrollView* bln_word_window = nullptr; // baseline norm words
static ScrollView* bln_word_window = nullptr; // baseline norm words
CMD_EVENTS mode = CHANGE_DISP_CMD_EVENT; // selected words op
static CMD_EVENTS mode = CHANGE_DISP_CMD_EVENT; // selected words op
bool recog_done = false; // recog_all_words was called
static bool recog_done = false; // recog_all_words was called
// These variables should remain global, since they are only used for the
// debug mode (in which only a single Tesseract thread/instance will exist).