Ubuntu Pastebin

Paste from Cristian Adam at Thu, 1 Aug 2019 16:04:40 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
diff --git a/src/math/quantity.cpp b/src/math/quantity.cpp
index df13f3ff..a9b9f919 100644
--- a/src/math/quantity.cpp
+++ b/src/math/quantity.cpp
@@ -97,21 +97,11 @@ bool operator!=(const Quantity& l, const Quantity& r)
return true;
}

-Quantity operator*(const HNumber& l, const Quantity& r)
-{
- return r * l;
-}
-
Quantity operator*(const CNumber& l, const Quantity& r)
{
return r * l;
}

-Quantity operator/(const HNumber& l, const Quantity& r)
-{
- return Quantity(l) / r;
-}
-
Quantity operator/(const CNumber& l, const Quantity& r)
{
return Quantity(l) / r;
diff --git a/src/math/quantity.h b/src/math/quantity.h
index 4f0df5f0..42005ba3 100644
--- a/src/math/quantity.h
+++ b/src/math/quantity.h
@@ -38,9 +38,7 @@ class Rational;
class DMath;
class Quantity;

-Quantity operator*(const HNumber&, const Quantity&);
Quantity operator*(const CNumber&, const Quantity&);
-Quantity operator/(const HNumber&, const Quantity&);
Quantity operator/(const CNumber&, const Quantity&);

class Quantity {
Download as text