mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 19:51:58 +01:00
clang build
This commit is contained in:
@@ -301,11 +301,18 @@ bool RecordSet::moveLast()
|
||||
|
||||
void RecordSet::setRowFormatter(RowFormatter::Ptr pRowFormatter)
|
||||
{
|
||||
pRowFormatter->setTotalRowCount(static_cast<int>(getTotalRowCount()));
|
||||
Statement::setRowFormatter(pRowFormatter);
|
||||
RowMap::iterator it = _rowMap.begin();
|
||||
RowMap::iterator end = _rowMap.end();
|
||||
for (; it != end; ++it) it->second->setFormatter(getRowFormatter());
|
||||
if (pRowFormatter)
|
||||
{
|
||||
if (pRowFormatter->getTotalRowCount() == RowFormatter::INVALID_ROW_COUNT)
|
||||
pRowFormatter->setTotalRowCount(static_cast<int>(getTotalRowCount()));
|
||||
|
||||
Statement::setRowFormatter(pRowFormatter);
|
||||
RowMap::iterator it = _rowMap.begin();
|
||||
RowMap::iterator end = _rowMap.end();
|
||||
for (; it != end; ++it) it->second->setFormatter(getRowFormatter());
|
||||
}
|
||||
else
|
||||
throw NullPointerException("Null RowFormatter in RecordSet.");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user