[glom] TranslatableItem::get_translatable_type_name(): Handle Field Titles.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] TranslatableItem::get_translatable_type_name(): Handle Field Titles.
- Date: Wed, 3 Dec 2014 08:35:02 +0000 (UTC)
commit 5b29f48f45ec60498b96f667a1ca035c5a158d50
Author: Murray Cumming <murrayc murrayc com>
Date: Wed Dec 3 09:33:56 2014 +0100
TranslatableItem::get_translatable_type_name(): Handle Field Titles.
Found by Coverity Scan as Logically Dead Code because there was
a duplicate else.
glom/libglom/data_structure/translatable_item.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glom/libglom/data_structure/translatable_item.cc
b/glom/libglom/data_structure/translatable_item.cc
index 2610643..5732861 100644
--- a/glom/libglom/data_structure/translatable_item.cc
+++ b/glom/libglom/data_structure/translatable_item.cc
@@ -242,7 +242,7 @@ Glib::ustring TranslatableItem::get_translatable_type_name(enumTranslatableItemT
return _("Table");
else if(item_type == TRANSLATABLE_TYPE_LAYOUT_ITEM)
return _("Layout Group");
- else if(item_type == TRANSLATABLE_TYPE_CUSTOM_TITLE)
+ else if(item_type == TRANSLATABLE_TYPE_FIELD_TITLE)
return _("Field Title");
else if(item_type == TRANSLATABLE_TYPE_BUTTON)
return _("Button");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]