mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 19:10:20 +01:00
change RowFormatter* to RowFormatterPtr
Modified all uses of RowFormatter pointer to SharedPtr (RowFormatterPtr)
This commit is contained in:
@@ -55,7 +55,7 @@ const std::size_t RecordSet::UNKNOWN_TOTAL_ROW_COUNT = std::numeric_limits<std::
|
||||
|
||||
|
||||
RecordSet::RecordSet(const Statement& rStatement,
|
||||
RowFormatter* pRowFormatter):
|
||||
RowFormatterPtr pRowFormatter):
|
||||
Statement(rStatement),
|
||||
_currentRow(0),
|
||||
_pBegin(new RowIterator(this, 0 == rowsExtracted())),
|
||||
@@ -69,7 +69,7 @@ RecordSet::RecordSet(const Statement& rStatement,
|
||||
|
||||
RecordSet::RecordSet(Session& rSession,
|
||||
const std::string& query,
|
||||
RowFormatter* pRowFormatter):
|
||||
RowFormatterPtr pRowFormatter):
|
||||
Statement((rSession << query, now)),
|
||||
_currentRow(0),
|
||||
_pBegin(new RowIterator(this, 0 == rowsExtracted())),
|
||||
@@ -309,7 +309,7 @@ bool RecordSet::moveLast()
|
||||
}
|
||||
|
||||
|
||||
void RecordSet::setRowFormatter(RowFormatter* pRowFormatter)
|
||||
void RecordSet::setRowFormatter(RowFormatterPtr pRowFormatter)
|
||||
{
|
||||
pRowFormatter->setTotalRowCount(static_cast<int>(getTotalRowCount()));
|
||||
Statement::setRowFormatter(pRowFormatter);
|
||||
|
||||
Reference in New Issue
Block a user