fixed some warnings and minor issues detected by clang-analyzer

This commit is contained in:
Guenter Obiltschnig
2016-09-13 11:37:12 +02:00
parent 153b4a7232
commit 7c37f18f84
8 changed files with 17 additions and 15 deletions

View File

@@ -253,8 +253,7 @@ bool RecordSet::moveFirst()
return true;
}
std::size_t currentRow = _currentRow;
currentRow = 0;
std::size_t currentRow = 0;
while (!isAllowed(currentRow))
{
if (currentRow >= subTotalRowCount() - 1) return false;
@@ -300,8 +299,7 @@ bool RecordSet::moveLast()
{
if (subTotalRowCount() > 0)
{
std::size_t currentRow = _currentRow;
currentRow = subTotalRowCount() - 1;
std::size_t currentRow = subTotalRowCount() - 1;
if (!isFiltered())
{
_currentRow = currentRow;