[glom] TranslatableItem: Correct switch cases.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] TranslatableItem: Correct switch cases.
- Date: Sun, 1 Nov 2015 12:58:11 +0000 (UTC)
commit 131f64dcf47d823cd0d8c4ec71129545012615d0
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 7384a78..b43f834 100644
--- a/glom/libglom/data_structure/translatable_item.cc
+++ b/glom/libglom/data_structure/translatable_item.cc
@@ -214,8 +214,6 @@ Glib::ustring TranslatableItem::get_translatable_type_name_nontranslated(enumTra
return "Custom Title";
else if(item_type == enumTranslatableItemType::RELATIONSHIP)
return "Relationship";
- else if(item_type == enumTranslatableItemType::RELATIONSHIP)
- return "Layout Item";
else if(item_type == enumTranslatableItemType::PRINT_LAYOUT)
return "Print Layout";
else if(item_type == enumTranslatableItemType::REPORT)
@@ -223,7 +221,7 @@ Glib::ustring TranslatableItem::get_translatable_type_name_nontranslated(enumTra
else if(item_type == enumTranslatableItemType::TABLE)
return "Table";
else if(item_type == enumTranslatableItemType::LAYOUT_ITEM)
- return "Layout Group";
+ return "Layout Item";
else if(item_type == enumTranslatableItemType::BUTTON)
return "Button";
else if(item_type == enumTranslatableItemType::TEXTOBJECT)
@@ -248,8 +246,6 @@ Glib::ustring TranslatableItem::get_translatable_type_name(enumTranslatableItemT
return _("Custom Title");
else if(item_type == enumTranslatableItemType::RELATIONSHIP)
return _("Relationship");
- else if(item_type == enumTranslatableItemType::RELATIONSHIP)
- return _("Layout Item");
else if(item_type == enumTranslatableItemType::PRINT_LAYOUT)
return _("Print Layout");
else if(item_type == enumTranslatableItemType::REPORT)
@@ -257,7 +253,7 @@ Glib::ustring TranslatableItem::get_translatable_type_name(enumTranslatableItemT
else if(item_type == enumTranslatableItemType::TABLE)
return _("Table");
else if(item_type == enumTranslatableItemType::LAYOUT_ITEM)
- return _("Layout Group");
+ return _("Layout Item");
else if(item_type == enumTranslatableItemType::BUTTON)
return _("Button");
else if(item_type == enumTranslatableItemType::TEXTOBJECT)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]