summaryrefslogtreecommitdiff
path: root/src/math-history.c
diff options
context:
space:
mode:
authormbkma <[email protected]>2020-02-26 10:14:57 +0100
committerlukefromdc <[email protected]>2020-02-27 05:50:08 +0000
commit8bdaa6361e8a9b44efaabded670f2efbe0791eef (patch)
tree02b3bf9a123ee93af094f9f9e5fa0fd34485a09e /src/math-history.c
parent8de77e33ab168df33b2a4bc7a7fe45aed75e9040 (diff)
downloadmate-calc-8bdaa6361e8a9b44efaabded670f2efbe0791eef.tar.bz2
mate-calc-8bdaa6361e8a9b44efaabded670f2efbe0791eef.tar.xz
free variables
Diffstat (limited to 'src/math-history.c')
-rw-r--r--src/math-history.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/math-history.c b/src/math-history.c
index 18b9bda..e350ef8 100644
--- a/src/math-history.c
+++ b/src/math-history.c
@@ -52,7 +52,7 @@ scroll_bottom_cb(MathHistory *history, gpointer data)
static gboolean
check_history(MathHistory *history, char *equation)
-{ /* Checks if the last inserted calculation is the same as the current calculation to be inserted in history-history */
+{ /* Checks if the last inserted calculation is the same as the current calculation to be inserted in history */
if (history->priv->items_count >= 1 && g_strcmp0(equation, history->priv->prev_equation)==0)
return TRUE; /* returns true if last entered equation is the same as the current equation */
else
@@ -61,7 +61,7 @@ check_history(MathHistory *history, char *equation)
void
math_history_insert_entry (MathHistory *history, char *equation, MPNumber *answer, int number_base)
-{ /* Inserts a new entry into the history-history listbox */
+{ /* Inserts a new entry into the history listbox */
history->priv->entry = math_history_entry_new(history->priv->equation);
gboolean check = check_history (history, equation);
history->priv->prev_equation = g_strdup(equation);