[clang-tidy] Replace C style casts with C++ ones

Found with google-readability-casting

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2019-09-27 20:42:34 -07:00
committed by Paul Beckingham
parent 55d103c491
commit 13e1bf7204
14 changed files with 86 additions and 86 deletions

View File

@@ -248,7 +248,7 @@ std::string renderAttribute (const std::string& name, const std::string& value,
col->type () == "date" &&
!value.empty())
{
Datetime d ((time_t)strtol (value.c_str (), nullptr, 10));
Datetime d (static_cast<time_t>(strtol (value.c_str (), nullptr, 10)));
if (format.empty())
return d.toString (Context::getContext ().config.get ("dateformat"));