Salome HOME
Copyright update 2022
[modules/gui.git] / src / GraphicsView / GraphicsView_Object.cxx
index 1d2bab7235d784e389f2ee1f0ad391960e55e9d5..9c45d6d3b99457a9c07ea8c296d6d7e7f5f3b08a 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2013-2019  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2013-2022  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -99,7 +99,7 @@ QRectF GraphicsView_Object::getRect() const
 // Function : checkHighlight
 // Purpose  : 
 //================================================================
-bool GraphicsView_Object::checkHighlight( double theX, double theY, QCursor& theCursor ) const
+bool GraphicsView_Object::checkHighlight( double theX, double theY, QCursor& /*theCursor*/ ) const
 {
   return !getRect().isNull() && getRect().contains( theX, theY );
 }
@@ -111,7 +111,7 @@ bool GraphicsView_Object::checkHighlight( double theX, double theY, QCursor& the
 bool GraphicsView_Object::highlight( double theX, double theY )
 {
   QCursor aCursor;
-  if( myIsHighlighted = isVisible() )
+  if( (myIsHighlighted = isVisible()) )
     myIsHighlighted = checkHighlight( theX, theY, aCursor );
   return myIsHighlighted;
 }
@@ -132,7 +132,7 @@ void GraphicsView_Object::unhighlight()
 bool GraphicsView_Object::select( double theX, double theY, const QRectF& theRect )
 {
   QCursor aCursor;
-  if( myIsSelected = isVisible() )
+  if( (myIsSelected = isVisible()) )
   {
     if( !theRect.isNull() )
       myIsSelected = theRect.contains( getRect() );