Fix Cppcheck warning about non-explicit constructor for MathLib::value
This commit is contained in:
parent
ac04541d56
commit
a4a866ab07
|
@ -44,7 +44,7 @@ public:
|
||||||
void promote(const value &v);
|
void promote(const value &v);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
value(const std::string &s);
|
explicit value(const std::string &s);
|
||||||
std::string str() const;
|
std::string str() const;
|
||||||
bool isInt() const {
|
bool isInt() const {
|
||||||
return type != FLOAT;
|
return type != FLOAT;
|
||||||
|
|
Loading…
Reference in New Issue