mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
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:
parent
fa4d73ef06
commit
0b98f471ed
2 changed files with 12 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue