1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-16 23:34:10 +02:00

Warn on deprecated brace initializer syntax

This commit is contained in:
Brian Fiete 2020-08-29 07:26:22 -07:00
parent ffee0a2aa3
commit 4369e07a55
12 changed files with 36 additions and 34 deletions

View file

@ -321,7 +321,7 @@ namespace System
protected virtual void* Alloc(int size, int align)
{
return new char8[size]* {?};
return new char8[size]* (?);
}
protected virtual void Free(void* ptr)
@ -2196,11 +2196,11 @@ namespace System
char16* buf;
if (encodedLen < 128)
{
buf = scope:mixin char16[encodedLen]* { ? };
buf = scope:mixin char16[encodedLen]* ( ? );
}
else
{
buf = new char16[encodedLen]* { ? };
buf = new char16[encodedLen]* ( ? );
defer:mixin delete buf;
}
@ -3212,11 +3212,11 @@ namespace System
char16* buf;
if (encodedLen < 128)
{
buf = scope:mixin char16[encodedLen]* { ? };
buf = scope:mixin char16[encodedLen]* ( ? );
}
else
{
buf = new char16[encodedLen]* { ? };
buf = new char16[encodedLen]* ( ? );
defer:mixin delete buf;
}