strtime: Explicitly cast char array to const string.
the build was successful
Details
the build was successful
Details
This commit is contained in:
parent
6690d2bd0b
commit
6f11116b1c
|
@ -48,11 +48,11 @@ const string Easy::time::strtime(const string &format, const bool &local) const
|
||||||
{
|
{
|
||||||
timeinfo = std::gmtime(&time);
|
timeinfo = std::gmtime(&time);
|
||||||
}
|
}
|
||||||
char buffer[bufsize];
|
|
||||||
|
|
||||||
|
char buffer[bufsize];
|
||||||
std::strftime(buffer, bufsize, format.c_str(), timeinfo);
|
std::strftime(buffer, bufsize, format.c_str(), timeinfo);
|
||||||
|
|
||||||
return buffer;
|
return static_cast<const string>(buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::ostream &Mastodon::Easy::operator <<(std::ostream &out,
|
std::ostream &Mastodon::Easy::operator <<(std::ostream &out,
|
||||||
|
|
Reference in New Issue