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

Use Q_ASSERT

parent 8f41eba2
......@@ -194,7 +194,6 @@ using KSieveUi::SieveDebugDialog;
#include <QDBusPendingCallWatcher>
// System includes
#include <assert.h>
#include <errno.h> // ugh
#include <akonadi/standardactionmanager.h>
#include <job/removeduplicatemailjob.h>
......@@ -609,8 +608,8 @@ void KMMainWidget::writeFolderConfig()
void KMMainWidget::layoutSplitters()
{
// This function can only be called when the old splitters are already deleted
assert( !mSplitter1 );
assert( !mSplitter2 );
Q_ASSERT( !mSplitter1 );
Q_ASSERT( !mSplitter2 );
// For some reason, this is necessary here so that the copy action still
// 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