67 lines
2.5 KiB
Diff
67 lines
2.5 KiB
Diff
From 21cd87cee68108712aaba82e2b0c47ebdd6a70be Mon Sep 17 00:00:00 2001
|
|
From: lizhenhua <lizhenhua@sina.com>
|
|
Date: Wed, 10 Jun 2020 17:34:25 +0800
|
|
Subject: [PATCH] Fix compiler errors
|
|
|
|
---
|
|
lib/equation-parser.vala | 6 +++---
|
|
lib/math-equation.vala | 4 ++--
|
|
2 files changed, 5 insertions(+), 5 deletions(-)
|
|
|
|
diff --git a/lib/equation-parser.vala b/lib/equation-parser.vala
|
|
index 668e1cd..f919d37 100644
|
|
--- a/lib/equation-parser.vala
|
|
+++ b/lib/equation-parser.vala
|
|
@@ -76,7 +76,7 @@ public class ParseNode : Object
|
|
public ParseNode.WithList (Parser parser, List<LexerToken> token_list, uint precedence, Associativity associativity, string? value = null)
|
|
{
|
|
this.parser = parser;
|
|
- this.token_list = token_list.copy();
|
|
+ this.token_list = token_list.copy_deep((CopyFunc) Object.ref);
|
|
this.precedence = precedence;
|
|
this.associativity = associativity;
|
|
this.value = value;
|
|
@@ -101,7 +101,7 @@ public class ParseNode : Object
|
|
|
|
public abstract class RNode : ParseNode
|
|
{
|
|
- public RNode (Parser parser, LexerToken? token, uint precedence, Associativity associativity)
|
|
+ protected RNode (Parser parser, LexerToken? token, uint precedence, Associativity associativity)
|
|
{
|
|
base (parser, token, precedence, associativity);
|
|
}
|
|
@@ -132,7 +132,7 @@ public abstract class RNode : ParseNode
|
|
|
|
public abstract class LRNode : ParseNode
|
|
{
|
|
- public LRNode (Parser parser, LexerToken? token, uint precedence, Associativity associativity)
|
|
+ protected LRNode (Parser parser, LexerToken? token, uint precedence, Associativity associativity)
|
|
{
|
|
base (parser, token, precedence, associativity);
|
|
}
|
|
diff --git a/lib/math-equation.vala b/lib/math-equation.vala
|
|
index bb9c771..65b10ab 100644
|
|
--- a/lib/math-equation.vala
|
|
+++ b/lib/math-equation.vala
|
|
@@ -824,7 +824,7 @@ public class MathEquation : Gtk.SourceBuffer
|
|
{
|
|
Gtk.TextIter iter;
|
|
get_iter_at_mark (out iter, get_insert ());
|
|
- (this as Gtk.TextBuffer).backspace (iter, true, true);
|
|
+ (this as Gtk.TextBuffer).backspace (ref iter, true, true);
|
|
insert_at_cursor ("^", -1);
|
|
return;
|
|
}
|
|
@@ -1245,7 +1245,7 @@ public class MathEquation : Gtk.SourceBuffer
|
|
{
|
|
Gtk.TextIter iter;
|
|
get_iter_at_mark (out iter, get_insert ());
|
|
- (this as Gtk.TextBuffer).backspace (iter, true, true);
|
|
+ (this as Gtk.TextBuffer).backspace (ref iter, true, true);
|
|
}
|
|
}
|
|
|
|
--
|
|
2.23.0
|
|
|