From 3d8d793a997a02ec8a4fbea41a008cefaedd0961 Mon Sep 17 00:00:00 2001 From: beaglejoe Date: Sat, 22 Jan 2022 23:29:10 +0000 Subject: [PATCH] Fix for older MSVC versions git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@7932 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: e500b1ff5ee49380653f6824be95b18ce1dc2c8a Former-commit-id: 9c91e695b209b84d11add1a435b307cdc2d44937 --- src/libs/tgfdata/racemanagers.cpp | 2 ++ src/libs/tgfdata/racemanagers.h | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libs/tgfdata/racemanagers.cpp b/src/libs/tgfdata/racemanagers.cpp index f40abf132..fe57f8abb 100644 --- a/src/libs/tgfdata/racemanagers.cpp +++ b/src/libs/tgfdata/racemanagers.cpp @@ -80,6 +80,8 @@ static bool hasHigherPriority(const GfRaceManager* pLeft, const GfRaceManager* p } GfRaceManagers::GfRaceManagers() + :CLIENT_SERVER_OFF_DISALLOWED_NETWORK_RACEMANAGER_TYPE("Network"), + CLIENT_SERVER_ON_DISALLOWED_NETWORK_RACEMANAGER_TYPE("Online") { _pPrivate = new Private; diff --git a/src/libs/tgfdata/racemanagers.h b/src/libs/tgfdata/racemanagers.h index 9db7d1077..8bbf61b85 100644 --- a/src/libs/tgfdata/racemanagers.h +++ b/src/libs/tgfdata/racemanagers.h @@ -144,8 +144,8 @@ protected: private: bool cmakeConfigurationPermits(const std::string& raceManagerType) const; - static constexpr const char *const CLIENT_SERVER_OFF_DISALLOWED_NETWORK_RACEMANAGER_TYPE = "Network"; - static constexpr const char *const CLIENT_SERVER_ON_DISALLOWED_NETWORK_RACEMANAGER_TYPE = "Online"; + std::string CLIENT_SERVER_OFF_DISALLOWED_NETWORK_RACEMANAGER_TYPE; + std::string CLIENT_SERVER_ON_DISALLOWED_NETWORK_RACEMANAGER_TYPE; }; #endif /* __TGFRACEMANAGERS__H__ */