Salome HOME
updated copyright message
[modules/gui.git] / src / Qtx / QtxWorkstackAction.cxx
index ab2e4a61cee39a7f3bc5590a0d61dfcff4d1bf2b..a2edb6bb48cd4d6a3d21fad8b1e1dbc907f2befc 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2015  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2023  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -297,7 +297,7 @@ void QtxWorkstackAction::setStatusTip( const int id, const QString& txt )
   \brief Process action activated by the user.
   \param type action ID
 */
-void QtxWorkstackAction::perform( const int type )
+void QtxWorkstackAction::perform( const int /*type*/ )
 {
   /*
   switch ( type )
@@ -524,12 +524,12 @@ QtxSplitDlg::QtxSplitDlg( QWidget* parent, QtxWorkstack* workstack, QtxSplitDlgM
 
   // Buttons for possibility of switching the variants of split
   myButtonPrevious = new QPushButton( this );
-  myButtonPrevious->setIcon( QIcon( QPixmap( prev_xpm ) ) );
+  myButtonPrevious->setIcon( QPixmap( prev_xpm ) );
   myButtonPrevious->setAutoDefault(true);
   myButtonPrevious->setEnabled( false );
 
   myButtonNext = new QPushButton( this );
-  myButtonNext->setIcon( QIcon( QPixmap( next_xpm ) ) );
+  myButtonNext->setIcon( QPixmap( next_xpm ) );
   myButtonNext->setAutoDefault(true);
   myButtonNext->setEnabled( false );
 
@@ -853,7 +853,7 @@ void QtxSplitDlg::onComboBoxChanged( int theItem )
   }
   for( int i = 0; i < 4; i++ ) {
     if( myComboBox[i] != aSender ) {
-      ViewMode aNewMode;
+      ViewMode aNewMode = XYZ;
       if( myMapComboBoxMode[myComboBox[i]] == (ViewMode)(theItem) ) {
         for( int j = 0; j < 4; j++ )
           if( !aModeEnabledMap[(ViewMode)j] )