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

unused variable in vtkMRMLNode.cxx #7725

Closed
maddin200 opened this issue May 3, 2024 · 2 comments · Fixed by #7739
Closed

unused variable in vtkMRMLNode.cxx #7725

maddin200 opened this issue May 3, 2024 · 2 comments · Fixed by #7739

Comments

@maddin200
Copy link
Contributor

Libs\MRML\Core\vtkMRMLNode.cxx line 517
Code:
//write node references
std::stringstream ssRef;
NodeReferencesType::iterator it;
std::map< std::string, std::string>::iterator itName; // <- unused

@lassoan
Copy link
Contributor

lassoan commented May 10, 2024

Thank you for pointing this out. It would be awesome if you could send a pull request, but if that's not feasible then we'll get to work on it later.

@jcfr jcfr linked a pull request May 14, 2024 that will close this issue
@jcfr jcfr changed the title unused variable unused variable in vtkMRMLNode.cxx May 14, 2024
@jcfr
Copy link
Member

jcfr commented May 14, 2024

//write node references
std::stringstream ssRef;
NodeReferencesType::iterator it;
std::map< std::string, std::string>::iterator itName;
for (it = this->NodeReferences.begin(); it != this->NodeReferences.end(); it++)
{
const std::string& referenceRole = it->first;
int numReferencedNodes = this->GetNumberOfNodeReferences(referenceRole.c_str());
bool referenceFound = false;
for (int n=0; n < numReferencedNodes; n++)
{
const char * id = this->GetNthNodeReferenceID(referenceRole.c_str(), n);
if (!id)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

3 participants