diff options
author | Hein-Pieter van Braam <hp@tmm.cx> | 2019-01-04 16:01:54 +0000 |
---|---|---|
committer | Hein-Pieter van Braam <hp@tmm.cx> | 2019-01-04 17:48:03 +0000 |
commit | ac99ed3cda12abe155f16a96ac0c716b2dbe6231 (patch) | |
tree | 2bae704d3f5852b415555b8393ec8eddf3b00500 /editor/connections_dialog.cpp | |
parent | 1504c961125c76f007bc2ff061c3854effbe3e56 (diff) |
String[size()] should return a default constructed CharType
As per the C++ standard 21.3.4.1 for std::string:
Returns: If pos < size(), returns data()[pos]. Otherwise, if pos ==
size(), the const version returns charT(). Otherwise, the behavior is
undefined.
Since the behavior is undefined Godot now does the same thing for const
and non-const versions of operator[].
This fixes #21242 and fixes #22221.
Diffstat (limited to 'editor/connections_dialog.cpp')
0 files changed, 0 insertions, 0 deletions