fixed defects from coverity.com

This commit is contained in:
Ilya Lavrenov
2014-02-23 14:59:06 +04:00
parent 0a90d6dde6
commit 32eb38ec98
27 changed files with 72 additions and 26 deletions

View File

@@ -2897,7 +2897,7 @@ static std::ostream& operator << (std::ostream& out, const MatPart& m)
}
MatComparator::MatComparator(double _maxdiff, int _context)
: maxdiff(_maxdiff), context(_context) {}
: maxdiff(_maxdiff), realmaxdiff(DBL_MAX), context(_context) {}
::testing::AssertionResult
MatComparator::operator()(const char* expr1, const char* expr2,

View File

@@ -855,6 +855,9 @@ int64 TestBase::_calibrate()
#endif
TestBase::TestBase(): testStrategy(PERF_STRATEGY_DEFAULT), declare(this)
{
lastTime = totalTime = timeLimit = 0;
nIters = currentIter = runsPerIteration = 0;
verified = false;
}
#ifdef _MSC_VER
# pragma warning(pop)