Skip to content

Commit 56be5e3

Browse files
committed
comment fixes for QtSLiM autofixing
1 parent 47253ad commit 56be5e3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

QtSLiM/QtSLiMWindow.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2126,12 +2126,13 @@ bool QtSLiMWindow::checkTerminationForAutofix(QString terminationMessage)
21262126
return offerAndExecuteAutofix(selection, "outputHaplosomesToVCF", "The `outputVCF()` method of Haplosome has been renamed to `outputHaplosomesToVCF()`.", terminationMessage);
21272127

21282128
//
2129-
// Shift from one trait to multitrait for SLiM 5.1
2129+
// Shift from one trait to multitrait for SLiM 6.0
21302130
//
21312131

21322132
if (terminationMessage.contains("property dominanceCoeff is not defined for object element type MutationType") &&
21332133
(selectionString == "dominanceCoeff"))
21342134
{
2135+
// if the user is accessing dominanceCoeff, it needs to be corrected to be a call to defaultDominanceForTrait()
21352136
// if the user is assigning into dominanceCoeff, it needs to be corrected to be a call to setDefaultDominanceForTrait()
21362137
if (terminationMessage.contains("GetPropertyOfElements"))
21372138
return offerAndExecuteAutofix(selection, "defaultDominanceForTrait()", "Reading the `dominanceCoeff` property of MutationType has become the method `defaultDominanceForTrait()`.", terminationMessage);
@@ -2182,6 +2183,7 @@ bool QtSLiMWindow::checkTerminationForAutofix(QString terminationMessage)
21822183
if (terminationMessage.contains("property hemizygousDominanceCoeff is not defined for object element type MutationType") &&
21832184
(selectionString == "hemizygousDominanceCoeff"))
21842185
{
2186+
// if the user is accessing hemizygousDominanceCoeff, it needs to be corrected to be a call to defaultHemizygousDominanceForTrait()
21852187
// if the user is assigning into hemizygousDominanceCoeff, it needs to be corrected to be a call to setDefaultHemizygousDominanceForTrait()
21862188
if (terminationMessage.contains("GetPropertyOfElements"))
21872189
return offerAndExecuteAutofix(selection, "defaultHemizygousDominanceForTrait()", "The `hemizygousDominanceCoeff` property of MutationType has become the method `defaultHemizygousDominanceForTrait()`.", terminationMessage);

0 commit comments

Comments
 (0)