diff options
| author | Shauren <shauren.trinity@gmail.com> | 2020-06-27 13:33:17 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2020-06-27 13:33:17 +0200 |
| commit | deca201f7787f31187e2b9fab9cba7760313e786 (patch) | |
| tree | 25c2b18ccd39760e2665a99c247980b606279e63 /src/common/Common.h | |
| parent | eccc015ce7c9d54cb79e113706ef028cfc34b144 (diff) | |
Core/DataStores: Simplified string memory allocation in db2 files, dropped unneccessary level of indirection
Diffstat (limited to 'src/common/Common.h')
| -rw-r--r-- | src/common/Common.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/common/Common.h b/src/common/Common.h index e97288996f8..732583da0de 100644 --- a/src/common/Common.h +++ b/src/common/Common.h @@ -103,8 +103,13 @@ TC_COMMON_API LocaleConstant GetLocaleByName(std::string const& name); #pragma pack(push, 1) -struct TC_COMMON_API LocalizedString +struct LocalizedString { + constexpr char const* operator[](LocaleConstant locale) const + { + return Str[locale]; + } + char const* Str[TOTAL_LOCALES]; }; |
