]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
wrap qDebug() with _DEBUG_
authorisn <isn@opencascade.com>
Thu, 6 Jun 2019 09:56:20 +0000 (12:56 +0300)
committerisn <isn@opencascade.com>
Thu, 6 Jun 2019 09:56:20 +0000 (12:56 +0300)
src/LightApp/LightApp_OBSelector.cxx
src/SUIT/SUIT_TreeSync.h

index b325a094a47fdafdf541df69823f198b194aaf23..9ed7e7afa4c8336acd03f91b63dc1a6ec119ae9c 100644 (file)
@@ -105,7 +105,9 @@ void LightApp_OBSelector::onSelectionChanged()
   mySelectedList.clear();
   selectionChanged();
   QTime t2 = QTime::currentTime();
+#ifdef _DEBUG_
   qDebug( QString( "selection time = %1 msecs" ).arg( t1.msecsTo( t2 ) ).toLatin1().constData() );
+#endif
 }
 
 /*!
index 73cc2a3fb116ee6396600fc3f471bca25aa8201d..f91c73822e32f19a8c2fc56c880e2581307774b2 100644 (file)
@@ -131,7 +131,11 @@ TrgItem synchronize( const SrcItem& r1, const TrgItem& r2, const TreeData& td )
       const DiffItem<SrcItem,TrgItem>& item = *anIt;
       if ( item.mySrc == td.nullSrc() ) {
         if ( item.myTrg == td.nullTrg() )
+        {
+#ifdef _DEBUG_
           qDebug( "error: both null" );
+#endif
+        }
         else
           // delete item
           td.deleteItemWithChildren( item.myTrg );