From 267af7a6fadfd88edce2e048fb17d993d091c50b Mon Sep 17 00:00:00 2001 From: Jon Trowbridge Date: Mon, 12 Mar 2001 19:18:46 +0000 Subject: Renamed "temp" as "new_text", to avoid confusion. 2001-03-12 Jon Trowbridge * gal/e-text/e-text-model.c (e_text_model_real_insert_length): Renamed "temp" as "new_text", to avoid confusion. (e_text_model_real_delete): Renamed "temp" as "new_text", to avoid confusion. svn path=/trunk/; revision=8640 --- widgets/text/e-text-model.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'widgets/text') diff --git a/widgets/text/e-text-model.c b/widgets/text/e-text-model.c index 5eccaff9fb..29c6ffb6b1 100644 --- a/widgets/text/e-text-model.c +++ b/widgets/text/e-text-model.c @@ -242,16 +242,16 @@ static void e_text_model_real_insert (ETextModel *model, gint position, const gchar *text) { EReposInsertShift repos; - gchar *temp; + gchar *new_text; gint ins_len; - temp = g_strdup_printf ("%.*s%s%s", position, model->priv->text, text, model->priv->text + position); + new_text = g_strdup_printf ("%.*s%s%s", position, model->priv->text, text, model->priv->text + position); ins_len = strlen (text); if (model->priv->text) g_free (model->priv->text); - model->priv->text = temp; + model->priv->text = new_text; if (model->priv->len >= 0) model->priv->len += ins_len; @@ -269,11 +269,11 @@ static void e_text_model_real_insert_length (ETextModel *model, gint position, const gchar *text, gint length) { EReposInsertShift repos; - gchar *temp = g_strdup_printf ("%.*s%.*s%s", position, model->priv->text, length, text, model->priv->text + position); + gchar *new_text = g_strdup_printf ("%.*s%.*s%s", position, model->priv->text, length, text, model->priv->text + position); if (model->priv->text) g_free (model->priv->text); - model->priv->text = temp; + model->priv->text = new_text; if (model->priv->len >= 0) model->priv->len += length; -- cgit v1.2.3