From: adam Date: Mon, 21 Feb 2011 16:53:32 +0000 (+0000) Subject: Remove warnings X-Git-Tag: V6_3_0a1~55 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1b05fb160a11519b149f260d9c38e65df1a08145;p=modules%2Fgui.git Remove warnings --- diff --git a/src/CAF/CAF_Application.cxx b/src/CAF/CAF_Application.cxx index 978034a58..add58a196 100755 --- a/src/CAF/CAF_Application.cxx +++ b/src/CAF/CAF_Application.cxx @@ -208,7 +208,8 @@ bool CAF_Application::undo( CAF_Study* doc ) bool success = false; if ( doc ) { - if ( success = doc->undo() ) + success = doc->undo(); + if ( success ) doc->update(); } return success; @@ -224,7 +225,8 @@ bool CAF_Application::redo(CAF_Study* doc) bool success = false; if ( doc ) { - if ( success = doc->redo() ) + success = doc->redo(); + if ( success ) doc->update(); } return success; diff --git a/src/LightApp/LightApp_EventFilter.cxx b/src/LightApp/LightApp_EventFilter.cxx index dccbf478a..335576385 100644 --- a/src/LightApp/LightApp_EventFilter.cxx +++ b/src/LightApp/LightApp_EventFilter.cxx @@ -56,7 +56,8 @@ bool LightApp_EventFilter::eventFilter( QObject* o, QEvent* e ) while( parent ) { - if ( aDesktop = dynamic_cast(parent) ) + aDesktop = dynamic_cast(parent); + if ( aDesktop ) break; parent = parent->parentWidget(); }