MolAlign: brace-init BestAlignmentParams in wrapper (#9042)

BestAlignmentParams is an aggregate; paren-init (T(...)) is rejected by Apple Clang (Xcode) and only works on some compilers.
Use brace-init (T{...}) for portable initialization.
This commit is contained in:
Yakov Pechersky
2026-01-08 01:31:22 -05:00
committed by greg landrum
parent 04901e7824
commit 2f26e34c25

View File

@@ -34,9 +34,9 @@ struct pyBestAlignmentParams : public BestAlignmentParams {
pyBestAlignmentParams(int maxMatches_, bool symmetrizeTerminalGroups_,
bool ignoreHs_, int numThreads_, python::object map_,
python::object weights_)
: BestAlignmentParams(maxMatches_, symmetrizeTerminalGroups_, ignoreHs_,
: BestAlignmentParams{maxMatches_, symmetrizeTerminalGroups_, ignoreHs_,
numThreads_, std::vector<MatchVectType>(),
nullptr) {
nullptr} {
unsigned int nAtms = 0;
if (map_ != python::object()) {
map = translateAtomMapSeq(map_);