code cleanup: unamed namespace instead of global or static variables

Unamed namespace behaves the same way as static variables in C source.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2018-09-13 17:55:47 +02:00 committed by Dirk Hohndel
parent 3b4877a073
commit 17a6f28827

View file

@ -77,10 +77,12 @@
#include "plugins/facebook/facebookconnectwidget.h"
#endif
QProgressDialog *progressDialog = NULL;
bool progressDialogCanceled = false;
namespace {
QProgressDialog *progressDialog = nullptr;
bool progressDialogCanceled = false;
int progressCounter = 0;
}
static int progressCounter = 0;
extern "C" int updateProgress(const char *text)
{