Commit ba651563 authored by promayon's avatar promayon
Browse files

FIXED warning errors on win32


git-svn-id: svn+ssh://scm.forge.imag.fr/var/lib/gforge/chroot/scmrepos/svn/camitk/trunk/camitk@329 ec899d31-69d1-42ba-9299-647d76f65fb3
parent 1f4edd56
......@@ -133,7 +133,7 @@ void ImpMainWindow::initActions() {
recentDocumentSeparator->setSeparator ( true );
recentDocumentSeparator->setVisible ( false );
for ( unsigned int i = 0; i < Application::getMaxRecentDocuments(); i++ ) {
for ( int i = 0; i < Application::getMaxRecentDocuments(); i++ ) {
recentDocumentActions.append(new QAction ( this ));
recentDocumentActions.last()->setVisible ( false );
connect ( recentDocumentActions.last(), SIGNAL ( triggered() ), this, SLOT ( openRecentDocuments() ) );
......
......@@ -90,7 +90,7 @@ bool MshExtension::save(Component* component) const {
mshFile << "$ELM" << endl;
mshFile << ps->GetNumberOfCells() << endl;
for ( unsigned int i = 0; i < ps->GetNumberOfCells() ; i++ ) {
for ( vtkIdType i = 0; i < ps->GetNumberOfCells() ; i++ ) {
switch (ps->GetCell(i)->GetCellType()) {
case VTK_TETRA :
mshFile << i + 1 << " 4 1 1 4 "
......@@ -101,31 +101,31 @@ bool MshExtension::save(Component* component) const {
break;
case VTK_HEXAHEDRON :
mshFile << i + 1 << " 5 1 1 8 ";
for (unsigned int j=0;j<ps->GetCell(i)->GetNumberOfPoints();j++)
for (vtkIdType j=0;j<ps->GetCell(i)->GetNumberOfPoints();j++)
mshFile << ps->GetCell(i)->GetPointId(j) + 1 << " ";
mshFile << endl;
break;
case VTK_WEDGE :
mshFile << i + 1 << " 6 1 1 6 ";
for (unsigned int j=0;j<ps->GetCell(i)->GetNumberOfPoints();j++)
for (vtkIdType j=0;j<ps->GetCell(i)->GetNumberOfPoints();j++)
mshFile << ps->GetCell(i)->GetPointId(j) + 1 << " ";
mshFile << endl;
break;
case VTK_PYRAMID :
mshFile << i + 1 << " 7 1 1 5 ";
for (unsigned int j=0;j<ps->GetCell(i)->GetNumberOfPoints();j++)
for (vtkIdType j=0;j<ps->GetCell(i)->GetNumberOfPoints();j++)
mshFile << ps->GetCell(i)->GetPointId(j) + 1 << " ";
mshFile << endl;
break;
case VTK_TRIANGLE :
mshFile << i + 1 << " 2 1 1 3 ";
for (unsigned int j=0;j<ps->GetCell(i)->GetNumberOfPoints();j++)
for (vtkIdType j=0;j<ps->GetCell(i)->GetNumberOfPoints();j++)
mshFile << ps->GetCell(i)->GetPointId(j) + 1 << " ";
mshFile << endl;
break;
case VTK_QUAD :
mshFile << i + 1 << " 3 1 1 4 ";
for (unsigned int j=0;j<ps->GetCell(i)->GetNumberOfPoints();j++)
for (vtkIdType j=0;j<ps->GetCell(i)->GetNumberOfPoints();j++)
mshFile << ps->GetCell(i)->GetPointId(j) + 1 << " ";
mshFile << endl;
break;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment