aboutsummaryrefslogtreecommitdiff
path: root/src/common/Common.h
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2020-06-27 13:33:17 +0200
committerShauren <shauren.trinity@gmail.com>2020-06-27 13:33:17 +0200
commitdeca201f7787f31187e2b9fab9cba7760313e786 (patch)
tree25c2b18ccd39760e2665a99c247980b606279e63 /src/common/Common.h
parenteccc015ce7c9d54cb79e113706ef028cfc34b144 (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.h7
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];
};