From: isn Date: Thu, 6 Jun 2019 09:56:20 +0000 (+0300) Subject: wrap qDebug() with _DEBUG_ X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d3fc7e7024654ff47916386cd9c0ff5957cf2fe2;p=modules%2Fgui.git wrap qDebug() with _DEBUG_ --- diff --git a/src/LightApp/LightApp_OBSelector.cxx b/src/LightApp/LightApp_OBSelector.cxx index b325a094a..9ed7e7afa 100644 --- a/src/LightApp/LightApp_OBSelector.cxx +++ b/src/LightApp/LightApp_OBSelector.cxx @@ -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 } /*! diff --git a/src/SUIT/SUIT_TreeSync.h b/src/SUIT/SUIT_TreeSync.h index 73cc2a3fb..f91c73822 100644 --- a/src/SUIT/SUIT_TreeSync.h +++ b/src/SUIT/SUIT_TreeSync.h @@ -131,7 +131,11 @@ TrgItem synchronize( const SrcItem& r1, const TrgItem& r2, const TreeData& td ) const DiffItem& 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 );