From: asv Date: Thu, 20 Jan 2005 11:50:05 +0000 (+0000) Subject: Minor changes in various source files to remove compilation warnings (unused variable... X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e63ce2931634ce4a416f676096bbba85b31db371;p=modules%2Fsuperv.git Minor changes in various source files to remove compilation warnings (unused variables, non void function reaches end of control of execution, etc..) --- diff --git a/src/SUPERVGUI/SUPERVGUI_CanvasNodePrs.cxx b/src/SUPERVGUI/SUPERVGUI_CanvasNodePrs.cxx index 8ea4956..969b433 100644 --- a/src/SUPERVGUI/SUPERVGUI_CanvasNodePrs.cxx +++ b/src/SUPERVGUI/SUPERVGUI_CanvasNodePrs.cxx @@ -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(); diff --git a/src/SUPERVGUI/SUPERVGUI_CanvasPort.cxx b/src/SUPERVGUI/SUPERVGUI_CanvasPort.cxx index 39577fc..198c5ed 100644 --- a/src/SUPERVGUI/SUPERVGUI_CanvasPort.cxx +++ b/src/SUPERVGUI/SUPERVGUI_CanvasPort.cxx @@ -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 diff --git a/src/SUPERVGUI/SUPERVGUI_CanvasView.cxx b/src/SUPERVGUI/SUPERVGUI_CanvasView.cxx index 4f65056..e4587d9 100644 --- a/src/SUPERVGUI/SUPERVGUI_CanvasView.cxx +++ b/src/SUPERVGUI/SUPERVGUI_CanvasView.cxx @@ -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); diff --git a/src/SUPERVGUI/SUPERVGUI_Clipboard.cxx b/src/SUPERVGUI/SUPERVGUI_Clipboard.cxx index 3c9c455..d286581 100644 --- a/src/SUPERVGUI/SUPERVGUI_Clipboard.cxx +++ b/src/SUPERVGUI/SUPERVGUI_Clipboard.cxx @@ -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