Commit 1b50266
committed
Fix String::create(_, 0) without HX_SMART_STRINGS
When smart strings are enabled, this always returns an empty string,
however, if they are disabled this currently has different behaviour
depending on the type of character passed in.
This fixes the behaviour so that it also returns an empty string for
wchar_t and char16_t strings when smart strings are disabled.1 parent 7911676 commit 1b50266
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
457 | 460 | | |
458 | 461 | | |
459 | 462 | | |
| |||
0 commit comments