1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Switch some captures to '?'

This commit is contained in:
Brian Fiete 2023-03-17 08:39:05 -07:00
parent 7f695596b8
commit ac6f58f118
4 changed files with 9 additions and 9 deletions

View file

@ -4415,7 +4415,7 @@ namespace IDE
Debug.Assert(true);
DisassemblyPanel disassemblyPanel = null;
WithTabs(scope [&] (tabButton) =>
WithTabs(scope [?] (tabButton) =>
{
if ((disassemblyPanel == null) && (tabButton.mContent is DisassemblyPanel))
{
@ -6188,7 +6188,7 @@ namespace IDE
public TabbedView.TabButton GetTab(Widget content)
{
TabbedView.TabButton tab = null;
WithTabs(scope [&] (checkTab) =>
WithTabs(scope [?] (checkTab) =>
{
if (checkTab.mContent == content)
tab = checkTab;
@ -7092,7 +7092,7 @@ namespace IDE
DarkTabbedView tabbedView = null;
DarkTabbedView.DarkTabButton tabButton = null;
WithTabs(scope [&] (tab) =>
WithTabs(scope [?] (tab) =>
{
if (tab.mContent == documentPanel)
{
@ -9278,7 +9278,7 @@ namespace IDE
{
String text = scope String();
bool isValid = false;
if (LoadTextFile(fullPath, text, true, scope [&] () => { if (sourceHash != null) *sourceHash = SourceHash.Create(.MD5, text); } ) case .Ok)
if (LoadTextFile(fullPath, text, true, scope [?] () => { if (sourceHash != null) *sourceHash = SourceHash.Create(.MD5, text); } ) case .Ok)
{
mFileWatcher.FileIsValid(fullPath);
isValid = true;

View file

@ -1577,7 +1577,7 @@ namespace IDE
UpdateWatches();
int foundIdx = 0;
gApp.mWatchPanel.mListView.GetRoot().WithItems(scope [&] (item) =>
gApp.mWatchPanel.mListView.GetRoot().WithItems(scope [?] (item) =>
{
if (item.mLabel == str)
{
@ -1615,7 +1615,7 @@ namespace IDE
UpdateWatches();
int foundIdx = 0;
gApp.mWatchPanel.mListView.GetRoot().WithItems(scope [&] (item) =>
gApp.mWatchPanel.mListView.GetRoot().WithItems(scope [?] (item) =>
{
let watchItem = (WatchListViewItem)item;
if (watchItem.Selected)