Skip to content

Commit

Permalink
svpaint: Change a variable from global to local
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
stweil committed Oct 8, 2018
1 parent 7b59559 commit 3ae765e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/viewer/svpaint.cpp
Expand Up @@ -32,7 +32,7 @@
#include <iostream>

// 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:
Expand Down

0 comments on commit 3ae765e

Please sign in to comment.