Commit b7d723ec authored by Adrien Béraud's avatar Adrien Béraud Committed by Sébastien Blin
Browse files

string utils: cleanup

Change-Id: I31f6aa38b7773bc0ecbdeb4ba2ae556f3fd53cc3
parent ebb5e5c1
......@@ -70,16 +70,6 @@ bstrToStdString(BSTR bstr)
to_string(double value)
char buf[64];
int len = snprintf(buf, sizeof(buf), "%-.*G", 16, value);
if (len <= 0)
throw std::invalid_argument{"can't parse double"};
return {buf, (size_t)len};
trim(const std::string &s)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment