From 93a07340a9e971ee4204af7d7c516d70e6002b02 Mon Sep 17 00:00:00 2001 From: stv Date: Tue, 21 Feb 2006 14:04:22 +0000 Subject: [PATCH] Updated SALOME GUI sources for building under Ms Visual .NET on Windows platform. --- src/OCCViewer/OCCViewer_CreateRestoreViewDlg.cxx | 6 +++--- src/OCCViewer/OCCViewer_ViewModel.cxx | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/OCCViewer/OCCViewer_CreateRestoreViewDlg.cxx b/src/OCCViewer/OCCViewer_CreateRestoreViewDlg.cxx index a79d5f2c7..0f6fb703c 100755 --- a/src/OCCViewer/OCCViewer_CreateRestoreViewDlg.cxx +++ b/src/OCCViewer/OCCViewer_CreateRestoreViewDlg.cxx @@ -108,7 +108,7 @@ void OCCViewer_CreateRestoreViewDlg::changeImage( QListBoxItem* curItem ) int index = curItem->listBox()->index( curItem ); if( myKeyFlag == 2 ) { - for( int i = 0; i < myListBox->count(); i++ ) + for( int i = 0; i < (int)myListBox->count(); i++ ) { if( myListBox->isSelected( i ) && i != index ) { @@ -156,11 +156,11 @@ void OCCViewer_CreateRestoreViewDlg::deleteSelectedItems() if( myListBox->count() && myListBox->isEditEnabled() ) { int curIndex = -1; - for( int i = 0; i < myListBox->count(); i++ ) + for( int i = 0; i < (int)myListBox->count(); i++ ) if( myListBox->isSelected( i ) ) { myListBox->removeItem( i ); - for( int j = i; j < myParametersMap.count(); j++ ) + for( int j = i; j < (int)myParametersMap.count(); j++ ) if( j != myParametersMap.count() - 1 ) myParametersMap[ j ] = myParametersMap[ j + 1 ]; else diff --git a/src/OCCViewer/OCCViewer_ViewModel.cxx b/src/OCCViewer/OCCViewer_ViewModel.cxx index 216c9ec84..6b74a7fc5 100755 --- a/src/OCCViewer/OCCViewer_ViewModel.cxx +++ b/src/OCCViewer/OCCViewer_ViewModel.cxx @@ -220,7 +220,7 @@ void OCCViewer_Viewer::enableSelection(bool isEnabled) return; QPtrVector wins = myViewManager->getViews(); - for ( int i = 0; i < wins.count(); i++ ) + for ( int i = 0; i < (int)wins.count(); i++ ) { OCCViewer_ViewWindow* win = ::qt_cast( wins.at( i ) ); if ( win ) @@ -237,7 +237,7 @@ void OCCViewer_Viewer::enableMultiselection(bool isEnable) return; QPtrVector wins = myViewManager->getViews(); - for ( int i = 0; i < wins.count(); i++ ) + for ( int i = 0; i < (int)wins.count(); i++ ) { OCCViewer_ViewWindow* win = ::qt_cast( wins.at( i ) ); if ( win ) -- 2.39.2