[gnome-calculator] number: Use proper chain-up syntax
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calculator] number: Use proper chain-up syntax
- Date: Sun, 4 Dec 2016 20:20:53 +0000 (UTC)
commit 343f9cb054af996e06d676996e083bc2dc9679d6
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sun Dec 4 11:53:19 2016 +0100
number: Use proper chain-up syntax
https://bugzilla.gnome.org/show_bug.cgi?id=775596
lib/number.vala | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/lib/number.vala b/lib/number.vala
index 49e8af2..cc364a1 100644
--- a/lib/number.vala
+++ b/lib/number.vala
@@ -67,7 +67,7 @@ public class Number : Object
denominator = -denominator;
}
- Number.integer (numerator);
+ this.integer (numerator);
if (denominator != 1)
{
num.divide_unsigned_integer (num, (long) denominator);
@@ -94,7 +94,7 @@ public class Number : Object
{
var x = theta.cos (unit);
var y = theta.sin (unit);
- Number.complex (x.multiply (r), y.multiply (r));
+ this.complex (x.multiply (r), y.multiply (r));
}
public Number.eulers ()
@@ -119,7 +119,7 @@ public class Number : Object
/* Sets z to be a uniform random number in the range [0, 1] */
public Number.random ()
{
- Number.double (Random.next_double ());
+ this.double (Random.next_double ());
}
public int64 to_integer ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]