File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 2121#include " astutils.h"
2222#include " errortypes.h"
2323#include " library.h"
24+ #include " mathlib.h"
2425#include " settings.h"
2526#include " simplecpp.h"
2627#include " symboldatabase.h"
@@ -1801,7 +1802,7 @@ void Token::printValueFlow(bool xml, std::ostream &out) const
18011802 break ;
18021803 case ValueFlow::Value::ValueType::FLOAT:
18031804 outs += " floatvalue=\" " ;
1804- outs += std::to_string (value.floatValue ); // TODO: should this be MathLib::toString()?
1805+ outs += MathLib::toString (value.floatValue );
18051806 outs += ' \" ' ;
18061807 break ;
18071808 case ValueFlow::Value::ValueType::MOVED:
@@ -1875,7 +1876,6 @@ void Token::printValueFlow(bool xml, std::ostream &out) const
18751876
18761877 outs += " />\n " ;
18771878 }
1878-
18791879 else {
18801880 if (&value != &values->front ())
18811881 outs += " ," ;
Original file line number Diff line number Diff line change 1919#include " vfvalue.h"
2020
2121#include " errortypes.h"
22+ #include " mathlib.h"
2223#include " token.h"
2324
2425#include < sstream>
@@ -58,7 +59,7 @@ namespace ValueFlow {
5859 ss << this ->tokvalue ->str ();
5960 break ;
6061 case ValueType::FLOAT:
61- ss << this ->floatValue ;
62+ ss << MathLib::toString ( this ->floatValue ) ;
6263 break ;
6364 case ValueType::MOVED:
6465 ss << toString (this ->moveKind );
You can’t perform that action at this time.
0 commit comments