From 3ae765ecca6bc4f5c97901002952efc9c80bce9c Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Mon, 8 Oct 2018 13:53:09 +0200 Subject: [PATCH] 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 --- src/viewer/svpaint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/viewer/svpaint.cpp b/src/viewer/svpaint.cpp index 5ae6ea8416..515ebf990d 100644 --- a/src/viewer/svpaint.cpp +++ b/src/viewer/svpaint.cpp @@ -32,7 +32,7 @@ #include // 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 { public: