[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:
John Ralls
2023-03-14 15:50:34 -07:00
parent 8db8105850
commit a44b3664e2
8 changed files with 249 additions and 13 deletions

View File

@@ -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));
}