Skip to content

Commit

Permalink
Set namespaces in GetRequiredNameSpaces() method
Browse files Browse the repository at this point in the history
  • Loading branch information
3dJan committed Feb 29, 2024
1 parent 0ae7c43 commit 334a8d3
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions Source/API/lib3mf_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -765,19 +765,11 @@ void Lib3MF::Impl::CModel::SetRandomNumberCallback(Lib3MF::RandomNumberCallback
m_model->setCryptoRandCallback(descriptor);
}

// auto pResult = std::unique_ptr<CBuildItemIterator>(new CBuildItemIterator());
// Lib3MF_uint32 nBuildItemCount = m_model->getBuildItemCount();
// Lib3MF_uint32 nIdx;

// for (nIdx = 0; nIdx < nBuildItemCount; nIdx++)
// pResult->addBuildItem(m_model->getBuildItem(nIdx));

// return pResult.release();
INameSpaceIterator * CModel::GetRequiredNameSpaces()
{
auto pResult = std::unique_ptr<CNameSpaceIterator>(new CNameSpaceIterator());

//ToDo: Add namespaces
pResult->setNameSpaces(std::move(m_model->getRequiredNameSpaces()));

return pResult.release();
}

0 comments on commit 334a8d3

Please sign in to comment.