[glom/glom-1-28] TranslatableItem: Correct switch cases.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom/glom-1-28] TranslatableItem: Correct switch cases.
- Date: Thu, 25 Feb 2016 15:49:22 +0000 (UTC)
commit c29a93bad81e5a4c1a05cadca2ab3d9df5d65a63
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Oct 30 14:26:21 2015 +0100
TranslatableItem: Correct switch cases.
Found by cppcheck.
glom/libglom/data_structure/translatable_item.cc | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/glom/libglom/data_structure/translatable_item.cc
b/glom/libglom/data_structure/translatable_item.cc
index e8b55ab..e8c7261 100644
--- a/glom/libglom/data_structure/translatable_item.cc
+++ b/glom/libglom/data_structure/translatable_item.cc
@@ -196,8 +196,6 @@ Glib::ustring TranslatableItem::get_translatable_type_name_nontranslated(enumTra
return "Custom Title";
else if(item_type == TRANSLATABLE_TYPE_RELATIONSHIP)
return "Relationship";
- else if(item_type == TRANSLATABLE_TYPE_RELATIONSHIP)
- return "Layout Item";
else if(item_type == TRANSLATABLE_TYPE_PRINT_LAYOUT)
return "Print Layout";
else if(item_type == TRANSLATABLE_TYPE_REPORT)
@@ -205,7 +203,7 @@ Glib::ustring TranslatableItem::get_translatable_type_name_nontranslated(enumTra
else if(item_type == TRANSLATABLE_TYPE_TABLE)
return "Table";
else if(item_type == TRANSLATABLE_TYPE_LAYOUT_ITEM)
- return "Layout Group";
+ return "Layout Item";
else if(item_type == TRANSLATABLE_TYPE_CUSTOM_TITLE)
return "Field Title";
else if(item_type == TRANSLATABLE_TYPE_BUTTON)
@@ -232,8 +230,6 @@ Glib::ustring TranslatableItem::get_translatable_type_name(enumTranslatableItemT
return _("Custom Title");
else if(item_type == TRANSLATABLE_TYPE_RELATIONSHIP)
return _("Relationship");
- else if(item_type == TRANSLATABLE_TYPE_RELATIONSHIP)
- return _("Layout Item");
else if(item_type == TRANSLATABLE_TYPE_PRINT_LAYOUT)
return _("Print Layout");
else if(item_type == TRANSLATABLE_TYPE_REPORT)
@@ -241,7 +237,7 @@ Glib::ustring TranslatableItem::get_translatable_type_name(enumTranslatableItemT
else if(item_type == TRANSLATABLE_TYPE_TABLE)
return _("Table");
else if(item_type == TRANSLATABLE_TYPE_LAYOUT_ITEM)
- return _("Layout Group");
+ return _("Layout Item");
else if(item_type == TRANSLATABLE_TYPE_BUTTON)
return _("Button");
else if(item_type == TRANSLATABLE_TYPE_TEXTOBJECT)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]