mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[c++options] Implement GncOptionGncOwnerValue class.
GncOwners aren't QofInstances and have limited lifetimes so an option must hold its own, wrapped in std::unique_ptr for memory management.
This commit is contained in:
@@ -809,8 +809,8 @@ gnc_register_owner_option(GncOptionDB* db, const char* section,
|
||||
default:
|
||||
uitype = GncOptionUIType::INTERNAL;
|
||||
};
|
||||
GncOption option{section, name, key, doc_string, value,
|
||||
uitype};
|
||||
GncOption option{GncOptionGncOwnerValue{section, name, key, doc_string,
|
||||
value, uitype}};
|
||||
db->register_option(section, std::move(option));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user