Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow single template comparisons in PP5 #69

Merged
merged 1 commit into from Jul 16, 2013
Merged

allow single template comparisons in PP5 #69

merged 1 commit into from Jul 16, 2013

Conversation

JordanCheney
Copy link
Contributor

Functionality to allow template to template comparisons in PP5

targetList.append(target);
TemplateList queryList;
queryList.append(query);
MatrixOutput *score = MatrixOutput::make(targetList.files(), queryList.files());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine, but the class will take ownership of this heap-allocated variable, and therefore it won't get deleted until the algorithm is destroyed (presumably at program exit). Better to give it a NULL parent in this case and delete at the end of the function, a perfect scenario for a QScopedPointer ;)

jklontz added a commit that referenced this pull request Jul 16, 2013
allow single template comparisons in PP5
@jklontz jklontz merged commit 4c0fea7 into master Jul 16, 2013
@jklontz jklontz deleted the PittPatt branch July 16, 2013 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants