[gnome-calculator/wip/ricotz/gcalc: 4/7] gcalc: Remove superfluous "new" modifiers on virtual methods
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calculator/wip/ricotz/gcalc: 4/7] gcalc: Remove superfluous "new" modifiers on virtual methods
- Date: Mon, 7 Oct 2019 18:17:36 +0000 (UTC)
commit 3ec1dee579d30855bf54b926df995a69dc338992
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon Oct 7 20:02:24 2019 +0200
gcalc: Remove superfluous "new" modifiers on virtual methods
gcalc/gcalc-gexpression.vala | 4 ++--
gcalc/gcalc-gfunction.vala | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gcalc/gcalc-gexpression.vala b/gcalc/gcalc-gexpression.vala
index ea35587f..43752606 100644
--- a/gcalc/gcalc-gexpression.vala
+++ b/gcalc/gcalc-gexpression.vala
@@ -26,14 +26,14 @@ public class GCalc.GExpression : Object, Expression {
// Expression
public weak Expression parent { get; set; }
public ExpressionContainer expressions { get { return exps; } }
- public new virtual string to_string () {
+ public virtual string to_string () {
string s = "";
foreach (Expression e in expressions) {
s += e.to_string ();
}
return s;
}
- public new virtual Result solve () {
+ public virtual Result solve () {
return new GErrorResult ("Invalid expression");
}
}
diff --git a/gcalc/gcalc-gfunction.vala b/gcalc/gcalc-gfunction.vala
index bfb29479..5b6bbe3c 100644
--- a/gcalc/gcalc-gfunction.vala
+++ b/gcalc/gcalc-gfunction.vala
@@ -49,7 +49,7 @@ public class GCalc.GFunction : GExpression, Function, Hashable {
return s;
}
- public new virtual Expression evaluate () throws GLib.Error {
+ public virtual Expression evaluate () throws GLib.Error {
return new GErrorExpression ();
}
// Hashable
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]