change RowFormatter* to RowFormatterPtr

Modified all uses of RowFormatter pointer to SharedPtr (RowFormatterPtr)
This commit is contained in:
aleks-f
2013-04-03 19:19:29 -05:00
parent a3873cbb5f
commit 1021b792b7
5 changed files with 41 additions and 20 deletions

View File

@@ -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);