mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Defer syntax fixes
This commit is contained in:
parent
2d76efdaaa
commit
483f579e65
2 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -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<String> suggestions = scope List<String>();
|
||||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue