void BreakHandler::append(BreakpointData *data)
{
- QTC_ASSERT(m_bp,/**/);
+ QTC_ASSERT(m_bp, return);
data->m_handler = this;
m_bp->append(data);
}
void BreakHandler::removeBreakpointHelper(int index)
{
- QTC_ASSERT(m_bp,/**/);
+ QTC_ASSERT(m_bp, return);
BreakpointData *data = m_bp->at(index);
m_bp->removeAt(index);
data->removeMarker();
void BreakHandler::removeBreakpoint(BreakpointData *data)
{
- QTC_ASSERT(m_bp,/**/);
+ QTC_ASSERT(m_bp, return);
removeBreakpointHelper(m_bp->indexOf(data));
emit layoutChanged();
}
BreakpointData *BreakHandler::findBreakpoint(quint64 address) const
{
- QTC_ASSERT(m_bp,/**/);
+ QTC_ASSERT(m_bp, return 0);
foreach (BreakpointData *data, *m_bp)
if (data->address == address)
return data;
BreakpointData *BreakHandler::findBreakpoint(const QString &fileName,
int lineNumber, bool useMarkerPosition)
{
- QTC_ASSERT(m_bp,/**/);
+ QTC_ASSERT(m_bp, return 0);
foreach (BreakpointData *data, *m_bp)
if (data->isLocatedAt(fileName, lineNumber, useMarkerPosition))
return data;
void BreakHandler::initializeFromTemplate(BreakHandler *other)
{
- QTC_ASSERT(other->isMasterList(), /**/);
- QTC_ASSERT(!isMasterList(), /**/);
- QTC_ASSERT(other->m_bp,/**/);
+ QTC_ASSERT(other->isMasterList(), return);
+ QTC_ASSERT(!isMasterList(), return);
+ QTC_ASSERT(other->m_bp, return);
m_bp = other->m_bp;
m_inserted.clear();
void BreakHandler::storeToTemplate(BreakHandler *other)
{
- QTC_ASSERT(m_bp,/**/);
+ QTC_ASSERT(m_bp, return);
foreach (BreakpointData *data, *m_bp) {
data->m_handler = other;
data->clear();
m_bp = 0;
other->saveSessionData();
- updateMarkers();
}
} // namespace Internal