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:
parent
7f695596b8
commit
ac6f58f118
4 changed files with 9 additions and 9 deletions
|
@ -315,7 +315,7 @@ namespace Beefy.widgets
|
|||
focusedItem.Focused = false;
|
||||
bool foundOldEnd = false;
|
||||
bool foundNewHead = false;
|
||||
WithItems(scope [&] (checkItem) =>
|
||||
WithItems(scope [?] (checkItem) =>
|
||||
{
|
||||
checkItem.Selected = foundNewHead ^ foundOldEnd;
|
||||
if (checkItem == item)
|
||||
|
|
|
@ -345,7 +345,7 @@ namespace System
|
|||
public Result<void> GetValue(StringView name, List<uint8> outData)
|
||||
{
|
||||
bool gotData = false;
|
||||
GetValue(name, scope [&] (regType, regData) =>
|
||||
GetValue(name, scope [?] (regType, regData) =>
|
||||
{
|
||||
if (regType == Windows.REG_BINARY)
|
||||
{
|
||||
|
@ -361,7 +361,7 @@ namespace System
|
|||
public Result<void> GetValue(StringView name, String outData)
|
||||
{
|
||||
bool gotData = false;
|
||||
GetValue(name, scope [&] (regType, regData) =>
|
||||
GetValue(name, scope [?] (regType, regData) =>
|
||||
{
|
||||
if ((regType == Windows.REG_SZ) || (regType == Windows.REG_EXPAND_SZ))
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue