Skip to content

Commit 3ae765e

Browse files
committed
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 <[email protected]>
1 parent 7b59559 commit 3ae765e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/viewer/svpaint.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#include <iostream>
3333

3434
// The current color values we use, initially white (== ScrollView::WHITE).
35-
int rgb[3] = { 255, 255, 255 };
35+
static int rgb[3] = { 255, 255, 255 };
3636

3737
class SVPaint : public SVEventHandler {
3838
public:

0 commit comments

Comments
 (0)