parent
bc3f5554a4
commit
f493ce16b3
|
@ -281,8 +281,7 @@ QString CppcheckLibraryData::open(QIODevice &file)
|
||||||
}
|
}
|
||||||
if (xmlReader.hasError()) {
|
if (xmlReader.hasError()) {
|
||||||
return xmlReader.errorString();
|
return xmlReader.errorString();
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
return QString();
|
return QString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -349,9 +349,15 @@ T asInt(T x)
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
|
||||||
MathLib::bigint asInt(float x) { return x; }
|
MathLib::bigint asInt(float x)
|
||||||
|
{
|
||||||
|
return x;
|
||||||
|
}
|
||||||
|
|
||||||
MathLib::bigint asInt(double x) { return x; }
|
MathLib::bigint asInt(double x)
|
||||||
|
{
|
||||||
|
return x;
|
||||||
|
}
|
||||||
|
|
||||||
template <class T, class U>
|
template <class T, class U>
|
||||||
static T calculate(const std::string& s, T x, U y)
|
static T calculate(const std::string& s, T x, U y)
|
||||||
|
@ -4111,8 +4117,7 @@ struct ConditionHandler {
|
||||||
void beforeCondition(TokenList* tokenlist,
|
void beforeCondition(TokenList* tokenlist,
|
||||||
SymbolDatabase* symboldatabase,
|
SymbolDatabase* symboldatabase,
|
||||||
ErrorLogger* errorLogger,
|
ErrorLogger* errorLogger,
|
||||||
const Settings* settings) const
|
const Settings* settings) const {
|
||||||
{
|
|
||||||
traverseCondition(
|
traverseCondition(
|
||||||
tokenlist,
|
tokenlist,
|
||||||
symboldatabase,
|
symboldatabase,
|
||||||
|
@ -4447,8 +4452,7 @@ struct SimpleConditionHandler : ConditionHandler {
|
||||||
const Token* exprTok,
|
const Token* exprTok,
|
||||||
const std::list<ValueFlow::Value>& values,
|
const std::list<ValueFlow::Value>& values,
|
||||||
TokenList* tokenlist,
|
TokenList* tokenlist,
|
||||||
const Settings* settings) const OVERRIDE
|
const Settings* settings) const OVERRIDE {
|
||||||
{
|
|
||||||
return valueFlowReverse(start, exprTok, values, tokenlist, settings);
|
return valueFlowReverse(start, exprTok, values, tokenlist, settings);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6155,8 +6159,7 @@ struct ContainerConditionHandler : ConditionHandler {
|
||||||
const Token* exprTok,
|
const Token* exprTok,
|
||||||
const std::list<ValueFlow::Value>& values,
|
const std::list<ValueFlow::Value>& values,
|
||||||
TokenList* tokenlist,
|
TokenList* tokenlist,
|
||||||
const Settings* settings) const OVERRIDE
|
const Settings* settings) const OVERRIDE {
|
||||||
{
|
|
||||||
if (values.empty())
|
if (values.empty())
|
||||||
return;
|
return;
|
||||||
if (!exprTok->variable())
|
if (!exprTok->variable())
|
||||||
|
|
Loading…
Reference in New Issue