mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-24 17:30:44 +02:00
fixed some warnings and minor issues detected by clang-analyzer
Conflicts: Data/src/RecordSet.cpp
This commit is contained in:
@@ -256,8 +256,7 @@ bool RecordSet::moveFirst()
|
||||
return true;
|
||||
}
|
||||
|
||||
std::size_t currentRow = _currentRow;
|
||||
currentRow = 0;
|
||||
std::size_t currentRow = 0;
|
||||
while (!isAllowed(currentRow))
|
||||
{
|
||||
if (currentRow >= rc - 1) return false;
|
||||
@@ -303,8 +302,7 @@ bool RecordSet::moveLast()
|
||||
{
|
||||
if (storageRowCount() > 0)
|
||||
{
|
||||
std::size_t currentRow = _currentRow;
|
||||
currentRow = storageRowCount() - 1;
|
||||
std::size_t currentRow = subTotalRowCount() - 1;
|
||||
if (!isFiltered())
|
||||
{
|
||||
_currentRow = currentRow;
|
||||
|
||||
Reference in New Issue
Block a user