[dia] [scan-build] Dead nested assignment
- From: Hans Breuer <hans src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [dia] [scan-build] Dead nested assignment
- Date: Sun, 6 Dec 2009 19:03:15 +0000 (UTC)
commit 639f53b0f71dfe4884c9d7bb2c112c77e4776f3b
Author: Hans Breuer <hans breuer org>
Date: Sun Dec 6 19:22:24 2009 +0100
[scan-build] Dead nested assignment
Superfluous assignments removed.
lib/proplist.c | 2 +-
objects/Database/table.c | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/lib/proplist.c b/lib/proplist.c
index 955c62d..f3edd29 100644
--- a/lib/proplist.c
+++ b/lib/proplist.c
@@ -118,7 +118,7 @@ prop_list_copy(GPtrArray *src)
for (i=0; i < src->len; i++) {
Property *psrc = g_ptr_array_index(src,i);
- Property *pdest = pdest = psrc->ops->copy(psrc);
+ Property *pdest = psrc->ops->copy(psrc);
g_ptr_array_index(dest,i) = pdest;
}
return dest;
diff --git a/objects/Database/table.c b/objects/Database/table.c
index 82c7ded..9a2c730 100644
--- a/objects/Database/table.c
+++ b/objects/Database/table.c
@@ -1162,18 +1162,18 @@ static real
table_calculate_namebox_data (Table * table)
{
real maxwidth = 0.0;
- real width = 0.0;
if (IS_NOT_EMPTY(table->name))
{
- maxwidth = width = dia_font_string_width (table->name,
- table->name_font,
- table->name_font_height);
+ maxwidth = dia_font_string_width (table->name,
+ table->name_font,
+ table->name_font_height);
}
table->namebox_height = table->name_font_height + 2*0.1;
if (table->visible_comment && IS_NOT_EMPTY(table->comment))
{
+ real width;
gint numOfCommentLines = 0;
gchar * wrapped_box = create_documentation_tag (table->comment,
table->tagging_comment,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]