KDSingleApplicationLocalSocket: Use namespace and constexpr

This commit is contained in:
Jonas Kvinge 2023-05-05 16:42:12 +02:00
parent 0fc6638294
commit e5c89d4881
1 changed files with 4 additions and 2 deletions

View File

@ -35,8 +35,10 @@
# include <qt_windows.h>
#endif
static const auto LOCALSOCKET_CONNECTION_TIMEOUT = std::chrono::seconds(5);
static const char LOCALSOCKET_PROTOCOL_VERSION = 2;
namespace {
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);