[gnome-calculator] GCalc: renamed GDivision to Division



commit d6c4e0fa5656e0a707e47ef2d0f4564867d9c22c
Author: Daniel Espinosa <esodan gmail com>
Date:   Thu Oct 17 11:28:21 2019 -0500

    GCalc: renamed GDivision to Division

 gcalc/{gcalc-gdivision.vala => gcalc-division.vala} | 4 ++--
 gcalc/gcalc-parser.vala                             | 2 +-
 gcalc/meson.build                                   | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gcalc/gcalc-gdivision.vala b/gcalc/gcalc-division.vala
similarity index 88%
rename from gcalc/gcalc-gdivision.vala
rename to gcalc/gcalc-division.vala
index 51c517b6..73bbd345 100644
--- a/gcalc/gcalc-gdivision.vala
+++ b/gcalc/gcalc-division.vala
@@ -1,4 +1,4 @@
-/* gcalc-gplus.vala
+/* gcalc-division.vala
  *
  * Copyright (C) 2018  Daniel Espinosa <esodan gmail com>
  *
@@ -18,7 +18,7 @@
  * Authors:
  *      Daniel Espinosa <esodan gmail com>
  */
-public class GCalc.GDivision : Expression, MathOperator, MathBinaryOperator, MathDivision {
+public class GCalc.Division : Expression, MathOperator, MathBinaryOperator, MathDivision {
   internal override string to_string () {
     return "/";
   }
diff --git a/gcalc/gcalc-parser.vala b/gcalc/gcalc-parser.vala
index f4d62f67..cac2b1f0 100644
--- a/gcalc/gcalc-parser.vala
+++ b/gcalc/gcalc-parser.vala
@@ -174,7 +174,7 @@ public class GCalc.Parser : Object {
           process_operator (opp, eq);
           break;
         case TokenType.DIV:
-          var op = new GDivision ();
+          var op = new Division ();
           process_term_operator (op, eq);
           break;
         case TokenType.MINUS:
diff --git a/gcalc/meson.build b/gcalc/meson.build
index 3827a440..3bfef9f0 100644
--- a/gcalc/meson.build
+++ b/gcalc/meson.build
@@ -58,6 +58,7 @@ lib_mpfrg = static_library ('mpfrg',
 gcalc_sources = files([
        'gcalc-assign.vala',
        'gcalc-constant.vala',
+       'gcalc-division.vala',
        'gcalc-expression.vala',
        'gcalc-expression-container.vala',
        'gcalc-expression-hash-map.vala',
@@ -78,7 +79,6 @@ gcalc_sources = files([
        'gcalc-function-tan.vala',
        'gcalc-function-tanh.vala',
        'gcalc-error-result.vala',
-       'gcalc-gdivision.vala',
        'gcalc-gerror-result.vala',
        'gcalc-gfunction.vala',
        'gcalc-gmath-equation.vala',
@@ -96,8 +96,8 @@ gcalc_sources = files([
        'gcalc-gvariable.vala',
        'gcalc-hashable.vala',
        'gcalc-math-assign.vala',
-       'gcalc-math-constant.vala',
        'gcalc-math-binary-operator.vala',
+       'gcalc-math-constant.vala',
        'gcalc-math-division.vala',
        'gcalc-math-equation.vala',
        'gcalc-math-equation-manager.vala',


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]