summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-09 15:42:29 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-09 15:42:29 +0100
commitd5f2ba9a3ebf952cb237141dae33ba9fc06ddabd (patch)
tree5748cbbbe7cce668f12669f4c51762259d7d1624 /l10ntools
parent7267e2b50d6752661c6cb42f7368b6b689c4ba04 (diff)
New loplugin:externvar: l10ntools
Change-Id: I7bfad0dfff95667a33b48dfe2354a8f0ffc5060d
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/source/uimerge.cxx4
-rw-r--r--l10ntools/source/xrmmerge.cxx20
2 files changed, 12 insertions, 12 deletions
diff --git a/l10ntools/source/uimerge.cxx b/l10ntools/source/uimerge.cxx
index 5b05dc9afec8..dd334de13fa5 100644
--- a/l10ntools/source/uimerge.cxx
+++ b/l10ntools/source/uimerge.cxx
@@ -29,8 +29,8 @@
#include <fstream>
#include <vector>
-OString sInputFileName;
-OString sOutputFile;
+static OString sInputFileName;
+static OString sOutputFile;
int extractTranslations()
{
diff --git a/l10ntools/source/xrmmerge.cxx b/l10ntools/source/xrmmerge.cxx
index 0feb4e023815..2bebcfeb4d4d 100644
--- a/l10ntools/source/xrmmerge.cxx
+++ b/l10ntools/source/xrmmerge.cxx
@@ -40,16 +40,16 @@ using namespace std;
void yyerror( const char * );
// set of global variables
-bool bMergeMode;
-bool bDisplayName;
-bool bExtensionDescription;
-OString sLanguage;
-OString sInputFileName;
-OString sOutputFile;
-OString sMergeSrc;
-OString sLangAttribute;
-OString sResourceType;
-XRMResParser *pParser = nullptr;
+static bool bMergeMode;
+static bool bDisplayName;
+static bool bExtensionDescription;
+static OString sLanguage;
+static OString sInputFileName;
+static OString sOutputFile;
+static OString sMergeSrc;
+static OString sLangAttribute;
+static OString sResourceType;
+static XRMResParser *pParser = nullptr;
extern "C" {
// the whole interface to lexer is in this extern "C" section