aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorJon Trowbridge <trow@ximian.com>2001-03-13 03:18:46 +0800
committerJon Trowbridge <trow@src.gnome.org>2001-03-13 03:18:46 +0800
commit267af7a6fadfd88edce2e048fb17d993d091c50b (patch)
tree6e701e934bd4af3e0a23435000bf713e1c3d1867 /widgets
parent7070cc67b28357b6086a9ac1b2f9ca644017cd4d (diff)
downloadgsoc2013-evolution-267af7a6fadfd88edce2e048fb17d993d091c50b.tar
gsoc2013-evolution-267af7a6fadfd88edce2e048fb17d993d091c50b.tar.gz
gsoc2013-evolution-267af7a6fadfd88edce2e048fb17d993d091c50b.tar.bz2
gsoc2013-evolution-267af7a6fadfd88edce2e048fb17d993d091c50b.tar.lz
gsoc2013-evolution-267af7a6fadfd88edce2e048fb17d993d091c50b.tar.xz
gsoc2013-evolution-267af7a6fadfd88edce2e048fb17d993d091c50b.tar.zst
gsoc2013-evolution-267af7a6fadfd88edce2e048fb17d993d091c50b.zip
Renamed "temp" as "new_text", to avoid confusion.
2001-03-12 Jon Trowbridge <trow@ximian.com> * 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
Diffstat (limited to 'widgets')
-rw-r--r--widgets/text/e-text-model.c10
1 files changed, 5 insertions, 5 deletions
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;