From 1b05fb160a11519b149f260d9c38e65df1a08145 Mon Sep 17 00:00:00 2001 From: adam Date: Mon, 21 Feb 2011 16:53:32 +0000 Subject: [PATCH] Remove warnings --- src/CAF/CAF_Application.cxx | 6 ++++-- src/LightApp/LightApp_EventFilter.cxx | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) 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(); } -- 2.39.2