Salome HOME
updated copyright message
[plugins/netgenplugin.git] / src / GUI / NETGENPluginGUI_HypothesisCreator.cxx
index 037948ae754e4d5b4771564d5d87b352e4931b30..15e3d04ad68f2263e234a5daab5ba60520bf9ff1 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2019  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2023  CEA, EDF, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -116,7 +116,7 @@ NETGENPluginGUI_HypothesisCreator::~NETGENPluginGUI_HypothesisCreator()
 {
 }
 
-bool NETGENPluginGUI_HypothesisCreator::checkParams(QString& msg) const
+bool NETGENPluginGUI_HypothesisCreator::checkParams(QString& /*msg*/) const
 {
   NetgenHypothesisData data_old, data_new;
   readParamsFromHypo( data_old );
@@ -413,11 +413,8 @@ QFrame* NETGENPluginGUI_HypothesisCreator::buildFrame()
     localSizeHeaders << tr( "LSZ_ENTRY_COLUMN" )<< tr( "LSZ_NAME_COLUMN" ) << tr( "LSZ_LOCALSIZE_COLUMN" );
     myLocalSizeTable->setHorizontalHeaderLabels(localSizeHeaders);
     myLocalSizeTable->horizontalHeader()->hideSection(LSZ_ENTRY_COLUMN);
-#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
-    myLocalSizeTable->horizontalHeader()->setResizeMode(QHeaderView::Interactive);
-#else
     myLocalSizeTable->horizontalHeader()->setSectionResizeMode(QHeaderView::Interactive);
-#endif
+
     myLocalSizeTable->resizeColumnToContents(LSZ_NAME_COLUMN);
     myLocalSizeTable->resizeColumnToContents(LSZ_LOCALSIZE_COLUMN);
     myLocalSizeTable->setAlternatingRowColors(true);
@@ -764,7 +761,7 @@ bool NETGENPluginGUI_HypothesisCreator::readParamsFromHypo( NetgenHypothesisData
 
   NETGENPluginGUI_HypothesisCreator*  that = (NETGENPluginGUI_HypothesisCreator*)this;
   NETGENPlugin::string_array_var myEntries = h->GetLocalSizeEntries();
-  for ( size_t i = 0; i < myEntries->length(); i++ )
+  for ( CORBA::ULong i = 0; i < myEntries->length(); i++ )
   {
     QString entry = myEntries[i].in();
     if (myLocalSizeMap.contains(entry) &&
@@ -829,17 +826,17 @@ bool NETGENPluginGUI_HypothesisCreator::storeParamsToHypo( const NetgenHypothesi
     if ( myNbSurfOptSteps )
     {
       h->SetVarParameter  ( h_data.myNbSurfOptStepsVar.toLatin1().constData(), "SetNbSurfOptSteps");
-      h->SetNbSurfOptSteps( h_data.myNbSurfOptSteps );
+      h->SetNbSurfOptSteps((CORBA::Short) h_data.myNbSurfOptSteps );
     }
     if ( myNbVolOptSteps )
     {
       h->SetVarParameter ( h_data.myNbVolOptStepsVar.toLatin1().constData(), "SetNbVolOptSteps");
-      h->SetNbVolOptSteps( h_data.myNbVolOptSteps );
+      h->SetNbVolOptSteps((CORBA::Short) h_data.myNbVolOptSteps );
     }
     if ( myFuseEdges )
       h->SetFuseEdges( h_data.myFuseEdges );
     h->SetVarParameter    ( h_data.myWorstElemMeasureVar.toLatin1().constData(), "SetWorstElemMeasure");
-    h->SetWorstElemMeasure( h_data.myWorstElemMeasure );
+    h->SetWorstElemMeasure((CORBA::Short) h_data.myWorstElemMeasure );
 
     h->SetUseDelauney( h_data.myUseDelauney );
     h->SetCheckOverlapping( h_data.myCheckOverlapping );