gnucash maint: Clear, not empty.

John Ralls jralls at code.gnucash.org
Sat Oct 5 14:44:18 EDT 2019


Updated	 via  https://github.com/Gnucash/gnucash/commit/badda882 (commit)
	from  https://github.com/Gnucash/gnucash/commit/315bbb5d (commit)



commit badda882244167680a0f149524a2f0588668fdbd
Author: John Ralls <jralls at ceridwen.us>
Date:   Sat Oct 5 11:44:09 2019 -0700

    Clear, not empty.
    
    Found by gcc when setting C++17 on master.

diff --git a/libgnucash/backend/sql/gnc-sql-backend.cpp b/libgnucash/backend/sql/gnc-sql-backend.cpp
index 270c06eac..0788ea812 100644
--- a/libgnucash/backend/sql/gnc-sql-backend.cpp
+++ b/libgnucash/backend/sql/gnc-sql-backend.cpp
@@ -325,7 +325,7 @@ GncSqlBackend::load (QofBook* book, QofBackendLoadType loadType)
                       gnc_commodity_begin_edit(comm);
                       gnc_commodity_commit_edit(comm);
                   });
-    m_postload_commodities.empty();
+    m_postload_commodities.clear();
 
     /* Mark the sessoion as clean -- though it should never be marked
      * dirty with this backend



Summary of changes:
 libgnucash/backend/sql/gnc-sql-backend.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the gnucash-changes mailing list