add guards around string constants and into an anonymous namespace

Signed-off-by: tnixeu <4436784+tnixeu@users.noreply.github.com>
This commit is contained in:
tnixeu 2022-10-29 02:19:35 +02:00 committed by Matthieu Gallien
parent fa4d73ef06
commit 0b98f471ed
2 changed files with 12 additions and 3 deletions

View file

@ -46,8 +46,12 @@
#include <QPushButton>
#include <QApplication>
static const char versionC[] = "version";
namespace {
#ifndef VERSION_C
#define VERSION_C
constexpr auto versionC= "version";
#endif
}
namespace OCC {
Q_LOGGING_CATEGORY(lcFolder, "nextcloud.gui.folder", QtInfoMsg)

View file

@ -38,7 +38,12 @@
#include <QSet>
#include <QNetworkProxy>
static const char versionC[] = "version";
namespace {
#ifndef VERSION_C
#define VERSION_C
constexpr auto versionC= "version";
#endif
}
static const int maxFoldersVersion = 1;
namespace OCC {