[glom] Avoid some compiler warnings
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Avoid some compiler warnings
- Date: Mon, 16 Sep 2013 10:13:13 +0000 (UTC)
commit c2c834ad527977dcd350c6277ce6f1ca8aa56889
Author: Murray Cumming <murrayc murrayc com>
Date: Mon Sep 16 12:05:54 2013 +0200
Avoid some compiler warnings
glom/libglom/data_structure/glomconversions.cc | 1 -
glom/mode_design/layout/dialog_layout_export.cc | 4 +---
.../layout_item_dialogs/dialog_fieldslist.cc | 4 +---
.../layout_item_dialogs/dialog_sortfields.cc | 2 --
4 files changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/glom/libglom/data_structure/glomconversions.cc b/glom/libglom/data_structure/glomconversions.cc
index 8f96442..43bd8d4 100644
--- a/glom/libglom/data_structure/glomconversions.cc
+++ b/glom/libglom/data_structure/glomconversions.cc
@@ -208,7 +208,6 @@ Glib::ustring Conversions::format_tm(const tm& tm_data, const std::locale& local
// Get a time_put face:
typedef std::time_put<char> type_time_put;
- typedef type_time_put::iter_type type_iterator;
const type_time_put& tp = std::use_facet<type_time_put>(locale);
//type_iterator begin(the_stream);
diff --git a/glom/mode_design/layout/dialog_layout_export.cc b/glom/mode_design/layout/dialog_layout_export.cc
index 677c5f9..a365ef1 100644
--- a/glom/mode_design/layout/dialog_layout_export.cc
+++ b/glom/mode_design/layout/dialog_layout_export.cc
@@ -135,9 +135,7 @@ void Dialog_Layout_Export::set_layout_groups(Document::type_list_layout_groups&
}
*/
- //Show the field layout
- typedef std::list< Glib::ustring > type_listStrings;
-
+ //Show the field layout:
m_model_fields->clear();
guint field_sequence = 1; //0 means no sequence
diff --git a/glom/mode_design/layout/layout_item_dialogs/dialog_fieldslist.cc
b/glom/mode_design/layout/layout_item_dialogs/dialog_fieldslist.cc
index 4da9bbe..2be365e 100644
--- a/glom/mode_design/layout/layout_item_dialogs/dialog_fieldslist.cc
+++ b/glom/mode_design/layout/layout_item_dialogs/dialog_fieldslist.cc
@@ -112,9 +112,7 @@ void Dialog_FieldsList::set_fields(const Glib::ustring& table_name, const Layout
m_label_table_name->set_text(table_name);
- //Show the field layout
- typedef std::list< Glib::ustring > type_listStrings;
-
+ //Show the field layout:
m_model_fields->clear();
guint field_sequence = 0;
for(LayoutGroup::type_list_items::const_iterator iter = fields.begin(); iter != fields.end(); ++iter)
diff --git a/glom/mode_design/layout/layout_item_dialogs/dialog_sortfields.cc
b/glom/mode_design/layout/layout_item_dialogs/dialog_sortfields.cc
index 71dfd50..28a2609 100644
--- a/glom/mode_design/layout/layout_item_dialogs/dialog_sortfields.cc
+++ b/glom/mode_design/layout/layout_item_dialogs/dialog_sortfields.cc
@@ -110,8 +110,6 @@ void Dialog_SortFields::set_fields(const Glib::ustring& table_name, const Layout
//Show the field layout
- typedef std::list< Glib::ustring > type_listStrings;
-
m_model_fields->clear();
guint field_sequence = 0;
for(LayoutItem_GroupBy::type_list_sort_fields::const_iterator iter = fields.begin(); iter !=
fields.end(); ++iter)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]