cleanup: Static_binary_string need not take non-const double parameter

Convert the parameter to const as the function won't modify the pointer
value.
This commit is contained in:
Vicențiu Ciorbaru 2020-10-15 17:37:31 +03:00
parent 9478368d81
commit 85c686e2d1
2 changed files with 3 additions and 3 deletions

View file

@ -767,10 +767,10 @@ void Static_binary_string::qs_append(double d)
NULL);
}
void Static_binary_string::qs_append(double *d)
void Static_binary_string::qs_append(const double *d)
{
double ld;
float8get(ld, (char*) d);
float8get(ld, (const char*) d);
qs_append(ld);
}

View file

@ -345,7 +345,7 @@ public:
void qs_append(const char *str, size_t len);
void qs_append_hex(const char *str, uint32 len);
void qs_append(double d);
void qs_append(double *d);
void qs_append(const double *d);
inline void qs_append(const char c)
{
Ptr[str_length]= c;