mathlib: toString() parameter changed to const reference
This commit is contained in:
parent
cda44e0c39
commit
f10e433593
|
@ -46,7 +46,7 @@ public:
|
||||||
static double toDoubleNumber(const std::string & str);
|
static double toDoubleNumber(const std::string & str);
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
static std::string toString(T d)
|
static std::string toString(const T &d)
|
||||||
{
|
{
|
||||||
std::ostringstream result;
|
std::ostringstream result;
|
||||||
result << d;
|
result << d;
|
||||||
|
|
Loading…
Reference in New Issue