mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Amendment last commit, must use std::make_optional
This commit is contained in:
parent
1e44d1a73a
commit
51e932c99a
@ -79,7 +79,7 @@ public:
|
||||
GncTreeIter(GtkTreeModel* model) : m_model (model)
|
||||
{
|
||||
GtkTreeIter iter;
|
||||
m_iter = gtk_tree_model_get_iter_first(m_model, &iter) ? iter : std::nullopt;
|
||||
m_iter = gtk_tree_model_get_iter_first(m_model, &iter) ? std::make_optional(iter) : std::nullopt;
|
||||
}
|
||||
|
||||
GncTreeIter& operator++()
|
||||
|
Loading…
Reference in New Issue
Block a user