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:
parent
2320e2eb8c
commit
40fe76d903
10 changed files with 21 additions and 21 deletions
|
@ -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++)
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue