Replace Q_ASSERTs with QTC_ASSERTs

or even with QTC_CHECKs.

Change-Id: I6df67f088bb2f944f0a1abd751fdb192db2be298
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Tobias Hunger
2012-01-12 11:32:45 +01:00
committed by hjk
parent e4a0bdd8e2
commit fab53ac364
15 changed files with 38 additions and 27 deletions

View File

@@ -33,6 +33,7 @@
#include "pullorpushdialog.h"
#include "ui_pullorpushdialog.h"
#include <utils/qtcassert.h>
using namespace Bazaar::Internal;
@@ -87,19 +88,19 @@ QString PullOrPushDialog::revision() const
bool PullOrPushDialog::isLocalOptionEnabled() const
{
Q_ASSERT(m_mode == PullMode);
QTC_ASSERT(m_mode == PullMode, return false);
return m_ui->localCheckBox->isChecked();
}
bool PullOrPushDialog::isUseExistingDirectoryOptionEnabled() const
{
Q_ASSERT(m_mode == PushMode);
QTC_ASSERT(m_mode == PushMode, return false);
return m_ui->useExistingDirCheckBox->isChecked();
}
bool PullOrPushDialog::isCreatePrefixOptionEnabled() const
{
Q_ASSERT(m_mode == PushMode);
QTC_ASSERT(m_mode == PushMode, return false);
return m_ui->createPrefixCheckBox->isChecked();
}