eliminate MSVC71 compiler warnings

This commit is contained in:
Aleksandar Fabijanic
2012-09-12 04:12:50 +00:00
parent 62d1782d24
commit 98d2240eb1
3 changed files with 15 additions and 11 deletions

View File

@@ -311,7 +311,7 @@ bool RecordSet::moveLast()
void RecordSet::setRowFormatter(RowFormatter* pRowFormatter)
{
pRowFormatter->setTotalRowCount(getTotalRowCount());
pRowFormatter->setTotalRowCount(static_cast<int>(getTotalRowCount()));
Statement::setRowFormatter(pRowFormatter);
RowMap::iterator it = _rowMap.begin();
RowMap::iterator end = _rowMap.end();
@@ -348,7 +348,7 @@ void RecordSet::formatValues(std::size_t offset, std::size_t length) const
std::ostream& RecordSet::copy(std::ostream& os, std::size_t offset, std::size_t length) const
{
RowFormatter& rf = const_cast<RowFormatter&>((*_pBegin)->getFormatter());
rf.setTotalRowCount(getTotalRowCount());
rf.setTotalRowCount(static_cast<int>(getTotalRowCount()));
if (RowFormatter::FORMAT_PROGRESSIVE == rf.getMode())
{
os << rf.prefix();