Skip to content

Commit 137bd33

Browse files
committed
infer.{cpp|h}: fixed ambiguity and made function static
1 parent f7c062b commit 137bd33

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

lib/infer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ namespace {
253253
};
254254
}
255255

256-
std::string toString(const Interval& i) {
256+
static std::string toString(const Interval& i) {
257257
return i.str();
258258
}
259259

lib/infer.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
#include <string>
2828
#include <vector>
2929

30-
struct Interval;
3130
template<class T> class ValuePtr;
3231

3332
struct InferModel {
@@ -57,6 +56,4 @@ std::vector<ValueFlow::Value> infer(const ValuePtr<InferModel>& model,
5756
CPPCHECKLIB std::vector<MathLib::bigint> getMinValue(const ValuePtr<InferModel>& model, const std::list<ValueFlow::Value>& values);
5857
std::vector<MathLib::bigint> getMaxValue(const ValuePtr<InferModel>& model, const std::list<ValueFlow::Value>& values);
5958

60-
std::string toString(const Interval& i);
61-
6259
#endif

0 commit comments

Comments
 (0)