diff options
author | Slávek Banko <[email protected]> | 2018-10-22 04:10:08 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2018-10-22 04:10:08 +0200 |
commit | 45e95597267482ddb1023b33ebeeb50597d91508 (patch) | |
tree | 9aa9f0f24cef676f20539cd863d3b505b1b0b2ec /src/scanstack.cpp | |
parent | aa733e149ff079df2c4d6a3dc6b2625b232697da (diff) | |
download | knmap-45e95597267482ddb1023b33ebeeb50597d91508.tar.gz knmap-45e95597267482ddb1023b33ebeeb50597d91508.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]>
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; } |