From 45e95597267482ddb1023b33ebeeb50597d91508 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Mon, 22 Oct 2018 04:10:08 +0200 Subject: Removed obsolete Qt2's ASSERT and replace with Q_ASSERT. The definition of -UTQT_NO_COMPAT is no longer needed. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- src/scanstack.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/scanstack.cpp') diff --git a/src/scanstack.cpp b/src/scanstack.cpp index 12d623c..5f5644b 100644 --- a/src/scanstack.cpp +++ b/src/scanstack.cpp @@ -66,7 +66,7 @@ void ScanStack::appendAndRaiseWidget( ScanWidget* scanWidget ) // ================ void ScanStack::appendHTMLWidget( HTMLWidget* htmlWidget ) -{ ASSERT( m_widgetId == 1 ); +{ Q_ASSERT( m_widgetId == 1 ); addWidget( (TQWidget*) htmlWidget, m_widgetId++ ); } @@ -94,7 +94,7 @@ short ScanStack::indexOfVisibleScanWidget( ) break; if( !moreScanWidgets( i )) - { ASSERT( false ); + { Q_ASSERT( false ); return -1; } @@ -108,7 +108,7 @@ ScanWidget* ScanStack::makeScanWidgetVisible( const ushort index ) { ScanWidget* current = scanWidget( index ); if( current == NULL ) - ASSERT( false ); + Q_ASSERT( false ); else { current->ignoreTabChanges( true ); raiseWidget( current ); @@ -156,7 +156,7 @@ void ScanStack::removeScanWidget( ScanWidget* scanWidgetToRemove ) short index = findScanWidget( scanWidgetToRemove ); if( index < 0 ) - { ASSERT( false ); + { Q_ASSERT( false ); return; } -- cgit v1.2.1