]> SALOME platform Git repositories - modules/superv.git/commitdiff
Salome HOME
Minor changes in various source files to remove compilation warnings (unused variable...
authorasv <asv@opencascade.com>
Thu, 20 Jan 2005 11:50:05 +0000 (11:50 +0000)
committerasv <asv@opencascade.com>
Thu, 20 Jan 2005 11:50:05 +0000 (11:50 +0000)
src/SUPERVGUI/SUPERVGUI_CanvasNodePrs.cxx
src/SUPERVGUI/SUPERVGUI_CanvasPort.cxx
src/SUPERVGUI/SUPERVGUI_CanvasView.cxx
src/SUPERVGUI/SUPERVGUI_Clipboard.cxx

index 8ea4956995df957e73d34c8691586e6882b647ff..969b433555c511a5da8d4579e324629d8d423487 100644 (file)
@@ -684,7 +684,7 @@ void SUPERVGUI_CanvasNodePrs::drawGate(QPainter& thePainter)
   QRect r = getGateRect();
   //  r.setHeight(r.height()+1);
   thePainter.drawRect(r);
-  int x0 = (r.left() + r.right())/2;
+  //int x0 = (r.left() + r.right())/2;
   //  thePainter.drawLine(x0, r.top(), x0, r.bottom());
 
   const QObjectList* list = myNode->children();
index 39577fc69fe2182cb60c4ab41d378101ed102c11..198c5ed0a91bcfb7ed2e2f8941b77a2c3140908f 100644 (file)
@@ -80,7 +80,7 @@ QPopupMenu* SUPERVGUI_CanvasPort::getPopupMenu(QWidget* theParent)
                            && !myPort->Node()->IsMacro())
     popup->insertItem(tr("ITM_COPY_PORT"), this, SLOT(copy()));
 
-  int anItem = popup->insertItem(tr("MSG_BROWSE"), this, SLOT(browse()));
+//int anItem = popup->insertItem(tr("MSG_BROWSE"), this, SLOT(browse()));
 //   if (getEngine()->IsLinked())
 //     popup->setItemEnabled(anItem, getEngine()->State() == SUPERV_Ready);
 //   else 
index 4f65056e61c8b7d59fa5f3a8dd2a707cfa85db84..e4587d9cd129116b4029a9dfaa66b643bab2a9a7 100644 (file)
@@ -491,7 +491,7 @@ void SUPERVGUI_CanvasView::contentsMouseDoubleClickEvent(QMouseEvent* theEvent)
   QPoint p = inverseWorldMatrix().map(theEvent->pos());
 
   // compute collision rectangle
-  QRect aSel(p.x()-MARGIN, p.y()-MARGIN, 1+2*MARGIN, 1+2*MARGIN);
+  //QRect aSel(p.x()-MARGIN, p.y()-MARGIN, 1+2*MARGIN, 1+2*MARGIN);
 
   if (theEvent->button() == Qt::LeftButton) {
     QCanvasItemList l = canvas()->collisions(p);
index 3c9c455f199476599d0fd51d31f91388deea3653..d286581b64672b12f7feb6a5729b90916ab0d315 100644 (file)
@@ -53,7 +53,7 @@ QString getNewName( QStringList& allNames, const QString& oldName ) {
  * asv : 14.01.05 : fix of a bug (exception on node creation): 
  *      if origName and theFunc is null, return non-null empty strings!
  */
-bool replaceName( SUPERV::ListOfStrings_var& theFunc, const QString& origName, const QString& newName ) {
+void replaceName( SUPERV::ListOfStrings_var& theFunc, const QString& origName, const QString& newName ) {
   for ( int i = 0, n = theFunc->length(); i < n; i++ ) {
     QString aLine( theFunc[i] );
     int index = aLine.find( origName, 0 ); // find FIRST occurance of origName in aLine