Commit 4efde039 authored by Laurent Montel's avatar Laurent Montel 😁

Use Q_ASSERT

parent 8f41eba2
...@@ -194,7 +194,6 @@ using KSieveUi::SieveDebugDialog; ...@@ -194,7 +194,6 @@ using KSieveUi::SieveDebugDialog;
#include <QDBusPendingCallWatcher> #include <QDBusPendingCallWatcher>
// System includes // System includes
#include <assert.h>
#include <errno.h> // ugh #include <errno.h> // ugh
#include <akonadi/standardactionmanager.h> #include <akonadi/standardactionmanager.h>
#include <job/removeduplicatemailjob.h> #include <job/removeduplicatemailjob.h>
...@@ -609,8 +608,8 @@ void KMMainWidget::writeFolderConfig() ...@@ -609,8 +608,8 @@ void KMMainWidget::writeFolderConfig()
void KMMainWidget::layoutSplitters() void KMMainWidget::layoutSplitters()
{ {
// This function can only be called when the old splitters are already deleted // This function can only be called when the old splitters are already deleted
assert( !mSplitter1 ); Q_ASSERT( !mSplitter1 );
assert( !mSplitter2 ); Q_ASSERT( !mSplitter2 );
// For some reason, this is necessary here so that the copy action still // For some reason, this is necessary here so that the copy action still
// works after changing the folder layout. // works after changing the folder layout.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment