[glom] Remove some unnecessary (because there are defaults) parameters.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Remove some unnecessary (because there are defaults) parameters.
- Date: Thu, 17 Mar 2016 17:16:27 +0000 (UTC)
commit 9437263bb134aef09f9cd26f321a4335fcd7880f
Author: Murray Cumming <murrayc murrayc com>
Date: Thu Mar 17 15:43:50 2016 +0100
Remove some unnecessary (because there are defaults) parameters.
glom/frame_glom.cc | 2 +-
glom/mode_data/datawidget/treemodel_db.cc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glom/frame_glom.cc b/glom/frame_glom.cc
index af055b1..74b79b2 100644
--- a/glom/frame_glom.cc
+++ b/glom/frame_glom.cc
@@ -391,7 +391,7 @@ void Frame_Glom::show_table_allow_empty(const Glib::ustring& table_name, const G
layout_item_temp->set_full_field_details(field_primary_key);
type_vecLayoutFields layout_fields;
layout_fields.emplace_back(layout_item_temp);
- auto sql_query_without_sort = SqlUtils::build_sql_select_with_where_clause(found_set.m_table_name,
layout_fields, found_set.m_where_clause, found_set.m_extra_join, SqlUtils::type_sort_clause());
+ auto sql_query_without_sort = SqlUtils::build_sql_select_with_where_clause(found_set.m_table_name,
layout_fields, found_set.m_where_clause, found_set.m_extra_join);
const Privileges table_privs = Privs::get_current_privs(found_set.m_table_name);
int count = 0;
diff --git a/glom/mode_data/datawidget/treemodel_db.cc b/glom/mode_data/datawidget/treemodel_db.cc
index 2975186..299f655 100644
--- a/glom/mode_data/datawidget/treemodel_db.cc
+++ b/glom/mode_data/datawidget/treemodel_db.cc
@@ -369,7 +369,7 @@ bool DbTreeModel::refresh_from_database(const FoundSet& found_set)
//This doesn't work with cursor-based models: const int count = m_gda_datamodel->get_n_rows();
//because rows count is -1 until we have iterated to the last row.
- auto sql_query_without_sort = SqlUtils::build_sql_select_with_where_clause(m_found_set.m_table_name,
m_column_fields, m_found_set.m_where_clause, m_found_set.m_extra_join, SqlUtils::type_sort_clause());
+ auto sql_query_without_sort = SqlUtils::build_sql_select_with_where_clause(m_found_set.m_table_name,
m_column_fields, m_found_set.m_where_clause, m_found_set.m_extra_join);
const int count = DbUtils::count_rows_returned_by(sql_query_without_sort);
if(count < 0)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]