From d3fc7e7024654ff47916386cd9c0ff5957cf2fe2 Mon Sep 17 00:00:00 2001 From: isn Date: Thu, 6 Jun 2019 12:56:20 +0300 Subject: [PATCH] wrap qDebug() with _DEBUG_ --- src/LightApp/LightApp_OBSelector.cxx | 2 ++ src/SUIT/SUIT_TreeSync.h | 4 ++++ 2 files changed, 6 insertions(+) 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 ); -- 2.39.2