Fix build on Apple Silicon or maybe Apple-clang-14.0

The compiler complains that there's no matching
gnc_register_number_range_option for GncOptionDB*, which without this
commit is true because the explicit templates are for GncOptionDBPtr&.
Note that the original template definition is for GncOptionDB* and
that the header-defined inlines that take GncOptionDBPtr& call the
GncOptionDB* version.
This commit is contained in:
John Ralls 2022-09-14 17:39:21 -07:00
parent a6e2842ea0
commit 23ca899a77

View File

@ -1312,11 +1312,11 @@ gnc_option_db_lookup_qofinstance_value(GncOptionDB* odb, const char* section,
}
// Force creation of templates
template void gnc_register_number_range_option(GncOptionDBPtr& db,
template void gnc_register_number_range_option(GncOptionDB* db,
const char* section, const char* name,
const char* key, const char* doc_string,
int value, int min, int max, int step);
template void gnc_register_number_range_option(GncOptionDBPtr& db,
template void gnc_register_number_range_option(GncOptionDB* db,
const char* section, const char* name,
const char* key, const char* doc_string,
double value, double min,