diff options
author | Slávek Banko <[email protected]> | 2018-10-22 04:10:08 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2018-10-22 18:42:36 +0200 |
commit | 83fb5c2a160acd743fe6beab0dca68a5ad8faf21 (patch) | |
tree | c150bd4d9daeaa099a9bb472c1484b2c3b81a6e9 /src/scanstack.cpp | |
parent | a83f600010c3c5d097c64ff3847ff59f2b2eaf7e (diff) | |
download | knmap-83fb5c2a160acd743fe6beab0dca68a5ad8faf21.tar.gz knmap-83fb5c2a160acd743fe6beab0dca68a5ad8faf21.zip |
Removed obsolete Qt2's ASSERT and replace with Q_ASSERT.
The definition of -UTQT_NO_COMPAT is no longer needed.
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit 45e95597267482ddb1023b33ebeeb50597d91508)
Diffstat (limited to 'src/scanstack.cpp')
-rw-r--r-- | src/scanstack.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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; } |