Commit 3a96dac
authored
FIX: MakeEscapedJsonString now null-checks inputs. Empty strings also now bypass an allocation. (#2019)
[Input System] MakeEscapedJsonString now null-checks inputs. Empty strings also now bypass an allocation.
This matches older behaviour on null-checking descriptor fields which is needed for certain device implementations.1 parent d5f2dff commit 3a96dac
3 files changed
Lines changed: 46 additions & 7 deletions
File tree
- Assets/Tests/InputSystem
- Packages/com.unity.inputsystem
- InputSystem
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4162 | 4162 | | |
4163 | 4163 | | |
4164 | 4164 | | |
4165 | | - | |
4166 | | - | |
4167 | | - | |
4168 | | - | |
4169 | | - | |
4170 | | - | |
4171 | | - | |
| 4165 | + | |
| 4166 | + | |
| 4167 | + | |
| 4168 | + | |
| 4169 | + | |
| 4170 | + | |
| 4171 | + | |
| 4172 | + | |
| 4173 | + | |
| 4174 | + | |
| 4175 | + | |
| 4176 | + | |
| 4177 | + | |
| 4178 | + | |
| 4179 | + | |
| 4180 | + | |
| 4181 | + | |
| 4182 | + | |
| 4183 | + | |
| 4184 | + | |
| 4185 | + | |
| 4186 | + | |
| 4187 | + | |
| 4188 | + | |
| 4189 | + | |
| 4190 | + | |
| 4191 | + | |
| 4192 | + | |
| 4193 | + | |
| 4194 | + | |
| 4195 | + | |
| 4196 | + | |
| 4197 | + | |
| 4198 | + | |
4172 | 4199 | | |
4173 | 4200 | | |
4174 | 4201 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| |||
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2562 | 2562 | | |
2563 | 2563 | | |
2564 | 2564 | | |
| 2565 | + | |
| 2566 | + | |
| 2567 | + | |
| 2568 | + | |
| 2569 | + | |
| 2570 | + | |
| 2571 | + | |
| 2572 | + | |
| 2573 | + | |
2565 | 2574 | | |
2566 | 2575 | | |
2567 | 2576 | | |
| |||
0 commit comments