summaryrefslogtreecommitdiffstats
path: root/core/string/ustring.cpp
diff options
context:
space:
mode:
authorGergely Kis <gergely.kis@migeran.com>2024-07-23 01:53:02 +0200
committerGergely Kis <gergely.kis@migeran.com>2024-07-24 02:40:36 +0200
commit723878bbabfa7f47049e29b1c46c92358517d8d1 (patch)
tree349e1f72f4e58c6f552c59cc9e55e6137d1a4c81 /core/string/ustring.cpp
parent8e36f98ea5b5ab4c1fb5249f94b61a7bbfb379a1 (diff)
downloadredot-engine-723878bbabfa7f47049e29b1c46c92358517d8d1.tar.gz
StringName: Use inline static field definitions
Before this change StringName used regular static field definitions for its mutex, _table, configured and debug_stringname fields. Since in the general case the ordering of the static variable and field initialization and destruction is undefined, it was possible that the destruction of StringName's static fields happened prior to the destruction of statically allocated StringName instances. By changing the static field definitions to inline in string_name.h, the C++17 standard guarantees the correct initialization and destruction ordering.
Diffstat (limited to 'core/string/ustring.cpp')
0 files changed, 0 insertions, 0 deletions