1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-04 23:36:00 +02:00

Added missing ()'s for allocations

This commit is contained in:
Brian Fiete 2020-05-11 10:16:24 -07:00
parent 2320e2eb8c
commit 40fe76d903
10 changed files with 21 additions and 21 deletions

View file

@ -310,7 +310,7 @@ namespace Beefy.theme.dark
delete mWindowTopImage;
}
Image themeImg = Image.LoadFromFile(scope String..Append(tempStr, BFApp.sApp.mInstallDir, "images/DarkTheme.png"), .AllowRead);
Image themeImg = Image.LoadFromFile(scope String()..Append(tempStr, BFApp.sApp.mInstallDir, "images/DarkTheme.png"), .AllowRead);
defer delete themeImg;
uint32[5] bits = ?;
themeImg.GetBits(0, 0, bits.Count, 1, bits.Count, &bits);
@ -335,7 +335,7 @@ namespace Beefy.theme.dark
mIconError = LoadSizedImage("IconError");
mIconWarning = LoadSizedImage("IconWarning");
mThemeImage = Image.LoadFromFile(scope String..Append(tempStr, BFApp.sApp.mInstallDir, "images/", uiFileName));
mThemeImage = Image.LoadFromFile(scope String()..Append(tempStr, BFApp.sApp.mInstallDir, "images/", uiFileName));
for (int32 i = 0; i < (int32)ImageIdx.COUNT; i++)
{

View file

@ -128,7 +128,7 @@ namespace System.IO
char16* cStr = null;
if (shellItem.VT.GetDisplayName(shellItem, .FILESYSPATH, out cStr) == .OK)
{
let str = scope String..Append(cStr);
let str = scope String()..Append(cStr);
mSelectedPath.Append(str);
Windows.COM_IUnknown.CoTaskMemFree(cStr);
result = .OK;

View file

@ -252,7 +252,7 @@ namespace System.Reflection
{
if (unboxToPtr)
{
int* stackDataPtr = scope:mixin int;
int* stackDataPtr = scope:mixin int();
*stackDataPtr = (int)dataPtr;
ffiArgList.Add(stackDataPtr);
}