From 333a14c0fd69324fe2586324e54e2bc74cedcef8 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Sat, 2 Jun 2018 17:57:42 -0700 Subject: [PATCH] Fix ubuntu build failure. %$^%$ C++11 initializer list behavior. --- libgnucash/backend/dbi/gnc-dbisqlconnection.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libgnucash/backend/dbi/gnc-dbisqlconnection.cpp b/libgnucash/backend/dbi/gnc-dbisqlconnection.cpp index ac25fb536d..336d2c42de 100644 --- a/libgnucash/backend/dbi/gnc-dbisqlconnection.cpp +++ b/libgnucash/backend/dbi/gnc-dbisqlconnection.cpp @@ -232,7 +232,7 @@ GncDbiSqlConnection::check_and_rollback_failed_save() auto backup_tables = m_provider->get_table_list(m_conn, "%back"); if (backup_tables.empty()) return true; - auto merge_tables{m_provider->get_table_list(m_conn, "%_merge")}; + auto merge_tables = m_provider->get_table_list(m_conn, "%_merge"); if (!merge_tables.empty()) { PERR("Merge tables exist in the database indicating a previous" @@ -664,8 +664,8 @@ GncDbiSqlConnection::merge_tables(const std::string& table, bool GncDbiSqlConnection::table_operation(TableOpType op) noexcept { - auto backup_tables{m_provider->get_table_list(m_conn, "%_back")}; - auto all_tables{m_provider->get_table_list(m_conn, "")}; + auto backup_tables = m_provider->get_table_list(m_conn, "%_back"); + auto all_tables = m_provider->get_table_list(m_conn, ""); /* No operations on the lock table */ auto new_end = std::remove(all_tables.begin(), all_tables.end(), lock_table); all_tables.erase(new_end, all_tables.end());