fixed more issues discovered while testing on Linux

This commit is contained in:
Guenter Obiltschnig
2020-01-09 17:43:31 +00:00
parent aa46e9b6e4
commit f7fc4a239f
2 changed files with 2 additions and 8 deletions

View File

@@ -41,8 +41,6 @@ TextTestResult::TextTestResult(const std::string& ignore):
if (line[0] == '#') if (line[0] == '#')
continue; continue;
std::string ignored(line); std::string ignored(line);
std::string::const_iterator it = ignored.begin();
std::string::const_iterator end = ignored.end();
ignoring(ignored); ignoring(ignored);
} }
ifs.close(); ifs.close();
@@ -78,8 +76,6 @@ TextTestResult::TextTestResult(std::ostream& ostr, const std::string& ignore) :
if (line[0] == '#') if (line[0] == '#')
continue; continue;
std::string ignored(line); std::string ignored(line);
std::string::const_iterator it = ignored.begin();
std::string::const_iterator end = ignored.end();
ignoring(ignored); ignoring(ignored);
} }
ifs.close(); ifs.close();
@@ -113,8 +109,6 @@ void TextTestResult::setup()
if (env) if (env)
{ {
std::string ignored = env; std::string ignored = env;
std::string::const_iterator it = ignored.begin();
std::string::const_iterator end = ignored.end();
ignoring(ignored); ignoring(ignored);
} }

View File

@@ -176,7 +176,7 @@ BinaryReader& BinaryReader::operator >> (double& value)
BinaryReader& BinaryReader::operator >> (long long& value) BinaryReader& BinaryReader::operator >> (long long& value)
{ {
_istr.read((char*) &value, sizeof(value)); _istr.read((char*) &value, sizeof(value));
if (_flipBytes) value = ByteOrder::flipBytes(value); if (_flipBytes) value = ByteOrder::flipBytes(static_cast<Poco::Int64>(value));
return *this; return *this;
} }
@@ -184,7 +184,7 @@ BinaryReader& BinaryReader::operator >> (long long& value)
BinaryReader& BinaryReader::operator >> (unsigned long long& value) BinaryReader& BinaryReader::operator >> (unsigned long long& value)
{ {
_istr.read((char*) &value, sizeof(value)); _istr.read((char*) &value, sizeof(value));
if (_flipBytes) value = ByteOrder::flipBytes(value); if (_flipBytes) value = ByteOrder::flipBytes(static_cast<Poco::UInt64>(value));
return *this; return *this;
} }