mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-23 10:08: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
|
@ -852,7 +852,7 @@ namespace IDE
|
|||
//folderDialog.
|
||||
if (folderDialog.ShowDialog(GetActiveWindow()).GetValueOrDefault() == .OK)
|
||||
{
|
||||
var selectedPath = scope String..AppendF(folderDialog.SelectedPath);
|
||||
var selectedPath = scope String()..AppendF(folderDialog.SelectedPath);
|
||||
selectedPath.Append(Path.DirectorySeparatorChar);
|
||||
selectedPath.Append("BeefSpace.toml");
|
||||
String.NewOrSet!(mDeferredOpenFileName, selectedPath);
|
||||
|
@ -2062,7 +2062,7 @@ namespace IDE
|
|||
if (relPath.EndsWith(endStr))
|
||||
relPath.RemoveToEnd(relPath.Length - endStr.Length);*/
|
||||
|
||||
var projectSpec = new Workspace.ProjectSpec;
|
||||
var projectSpec = new Workspace.ProjectSpec();
|
||||
projectSpec.mProjectName = new .(project.mProjectName);
|
||||
if (verSpec != null)
|
||||
{
|
||||
|
@ -2430,7 +2430,7 @@ namespace IDE
|
|||
}
|
||||
}
|
||||
|
||||
var projSpec = new Workspace.ProjectSpec;
|
||||
var projSpec = new Workspace.ProjectSpec();
|
||||
projSpec.mProjectName = new String(project.mProjectName);
|
||||
projSpec.mVerSpec = new VerSpecRecord();
|
||||
projSpec.mVerSpec.SetPath(".");
|
||||
|
@ -2488,7 +2488,7 @@ namespace IDE
|
|||
{
|
||||
for (var projectName in data.Enumerate("Projects"))
|
||||
{
|
||||
var projSpec = new Workspace.ProjectSpec;
|
||||
var projSpec = new Workspace.ProjectSpec();
|
||||
projSpec.mProjectName = new String(projectName);
|
||||
projSpec.mVerSpec = new VerSpecRecord();
|
||||
mWorkspace.mProjectSpecs.Add(projSpec);
|
||||
|
@ -9823,7 +9823,7 @@ namespace IDE
|
|||
{
|
||||
if (err != .NotFound)
|
||||
{
|
||||
Fail(scope String..AppendF("Failed to rename {0} to {1}", dbgBuildDir, tempDirName));
|
||||
Fail(scope String()..AppendF("Failed to rename {0} to {1}", dbgBuildDir, tempDirName));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1401,7 +1401,7 @@ namespace IDE
|
|||
public void OpenWorkspace(String dirPath)
|
||||
{
|
||||
gApp.[Friend]mDeferredOpen = .Workspace;
|
||||
var selectedPath = scope String..AppendF(dirPath);
|
||||
var selectedPath = scope String()..AppendF(dirPath);
|
||||
selectedPath.Append(Path.DirectorySeparatorChar);
|
||||
selectedPath.Append("BeefSpace.toml");
|
||||
IDEUtils.FixFilePath(selectedPath);
|
||||
|
|
|
@ -411,7 +411,7 @@ namespace IDE.ui
|
|||
switch ((CategoryType)mPropPage.mCategoryType)
|
||||
{
|
||||
case .Project:
|
||||
var generalOptions = scope Project.GeneralOptions;
|
||||
var generalOptions = scope Project.GeneralOptions();
|
||||
mProject.SetupDefault(generalOptions);
|
||||
targetDict[mCurPropertiesTargets[0]] = generalOptions;
|
||||
UpdateFromTarget(targetDict);
|
||||
|
@ -420,7 +420,7 @@ namespace IDE.ui
|
|||
DistinctBuildOptions defaultTypeOptions = scope:: .();
|
||||
for (var typeOption in mProject.mBeefGlobalOptions.mDistinctBuildOptions)
|
||||
targetDict[typeOption] = defaultTypeOptions;
|
||||
var generalOptions = scope Project.BeefGlobalOptions;
|
||||
var generalOptions = scope Project.BeefGlobalOptions();
|
||||
mProject.SetupDefault(generalOptions);
|
||||
targetDict[mCurPropertiesTargets[0]] = generalOptions;
|
||||
UpdateFromTarget(targetDict);
|
||||
|
|
|
@ -672,7 +672,7 @@ namespace IDE.ui
|
|||
DistinctBuildOptions defaultTypeOptions = scope:: .();
|
||||
for (var typeOption in gApp.mWorkspace.mBeefGlobalOptions.mDistinctBuildOptions)
|
||||
targetDict[typeOption] = defaultTypeOptions;
|
||||
var generalOptions = scope Workspace.BeefGlobalOptions;
|
||||
var generalOptions = scope Workspace.BeefGlobalOptions();
|
||||
targetDict[mCurPropertiesTargets[0]] = generalOptions;
|
||||
UpdateFromTarget(targetDict);
|
||||
case .Beef_Targeted:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue