]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Remove warnings
authoradam <adam>
Mon, 21 Feb 2011 16:53:32 +0000 (16:53 +0000)
committeradam <adam>
Mon, 21 Feb 2011 16:53:32 +0000 (16:53 +0000)
src/CAF/CAF_Application.cxx
src/LightApp/LightApp_EventFilter.cxx

index 978034a58d6c54116dacf41019924f15ba820f83..add58a196f8068f1534ae86dc9a4d6d5d737fe7d 100755 (executable)
@@ -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;
index dccbf478ad44c5fc7ed2d557f0c4dc9b0465adfd..335576385d02a178d27e9e1fa03e61ac3910967a 100644 (file)
@@ -56,7 +56,8 @@ bool LightApp_EventFilter::eventFilter( QObject* o, QEvent* e )
       
       while( parent )
         {
-          if ( aDesktop = dynamic_cast<SUIT_Desktop*>(parent) )
+          aDesktop = dynamic_cast<SUIT_Desktop*>(parent);
+          if ( aDesktop )
             break;
           parent = parent->parentWidget();
         }