forked from qt-creator/qt-creator
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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user