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

@@ -267,7 +267,7 @@ void PageReader::nextToken(std::istream& istr, std::string& token)
if (ch == '<' && istr.peek() == '%')
{
token += "<%";
ch = istr.get();
istr.get();
ch = istr.peek();
switch (ch)
{
@@ -300,7 +300,7 @@ void PageReader::nextToken(std::istream& istr, std::string& token)
else if (ch == '%' && istr.peek() == '>')
{
token += "%>";
ch = istr.get();
istr.get();
}
else token += (char) ch;
}