diff --git a/IDE/src/ui/DisassemblyPanel.bf b/IDE/src/ui/DisassemblyPanel.bf index cd9c039c..0273b030 100644 --- a/IDE/src/ui/DisassemblyPanel.bf +++ b/IDE/src/ui/DisassemblyPanel.bf @@ -266,7 +266,7 @@ namespace IDE.ui IdSpan liveCharIdData; String liveText = scope:: String(); app.FindProjectSourceContent(projectSource, out liveCharIdData, true, liveText, null); - defer(stack) liveCharIdData.Dispose(); + defer:: liveCharIdData.Dispose(); var compileInstance = IDEApp.sApp.mWorkspace.GetProjectSourceCompileInstance(projectSource, mHotIdx); if (compileInstance == null) diff --git a/IDE/src/ui/SourceEditWidgetContent.bf b/IDE/src/ui/SourceEditWidgetContent.bf index 540c766f..af07c861 100644 --- a/IDE/src/ui/SourceEditWidgetContent.bf +++ b/IDE/src/ui/SourceEditWidgetContent.bf @@ -1244,7 +1244,7 @@ namespace IDE.ui { var undoBatchStart = new UndoBatchStart("pasteText"); mData.mUndoManager.Add(undoBatchStart); - defer(stack) mData.mUndoManager.Add(undoBatchStart.mBatchEnd); + defer:: mData.mUndoManager.Add(undoBatchStart.mBatchEnd); } if (HasSelection()) @@ -3644,7 +3644,7 @@ namespace IDE.ui bool hadSuggestion = false; List suggestions = scope List(); - defer (scope) ClearAndDeleteItems(suggestions); + defer ClearAndDeleteItems(suggestions); spellChecker.GetSuggestions(word, suggestions); for (var suggestion in suggestions) { @@ -3789,7 +3789,7 @@ namespace IDE.ui else if (bfSystem != null) { parser = bfSystem.CreateEmptyParser(null); - defer(stack) delete parser; + defer:: delete parser; var text = scope String(); mEditWidget.GetText(text); parser.SetSource(text, mSourceViewPanel.mFilePath);