KDSingleApplicationLocalSocket: Use namespace and constexpr
This commit is contained in:
parent
0fc6638294
commit
e5c89d4881
|
@ -35,8 +35,10 @@
|
||||||
# include <qt_windows.h>
|
# include <qt_windows.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static const auto LOCALSOCKET_CONNECTION_TIMEOUT = std::chrono::seconds(5);
|
namespace {
|
||||||
static const char LOCALSOCKET_PROTOCOL_VERSION = 2;
|
static constexpr auto LOCALSOCKET_CONNECTION_TIMEOUT = std::chrono::seconds(5);
|
||||||
|
static constexpr char LOCALSOCKET_PROTOCOL_VERSION = 2;
|
||||||
|
} // namespace
|
||||||
|
|
||||||
Q_LOGGING_CATEGORY(kdsaLocalSocket, "kdsingleapplication.localsocket", QtWarningMsg);
|
Q_LOGGING_CATEGORY(kdsaLocalSocket, "kdsingleapplication.localsocket", QtWarningMsg);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue