mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 14:41:36 +08:00
svpaint: Change a variable from global to local
This fixes a warning from LGTM: Poor global variable name 'rgb'. Prefer longer, descriptive names for globals (eg. kMyGlobalConstant, not foo). Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
7b5955920d
commit
3ae765ecca
@ -32,7 +32,7 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
// The current color values we use, initially white (== ScrollView::WHITE).
|
// The current color values we use, initially white (== ScrollView::WHITE).
|
||||||
int rgb[3] = { 255, 255, 255 };
|
static int rgb[3] = { 255, 255, 255 };
|
||||||
|
|
||||||
class SVPaint : public SVEventHandler {
|
class SVPaint : public SVEventHandler {
|
||||||
public:
|
public:
|
||||||
|
Loading…
Reference in New Issue
Block a user