fixed some warnings and minor issues detected by clang-analyzer

Conflicts:
	Data/src/RecordSet.cpp
This commit is contained in:
Guenter Obiltschnig
2016-09-13 11:37:12 +02:00
parent fbbf197fd2
commit ae3c4a4ba3
8 changed files with 17 additions and 15 deletions

View File

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