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

This reverts commit 13e1bf7204.
This commit is contained in:
Paul Beckingham
2020-12-05 16:18:15 -05:00
parent 364b4ea8bd
commit c43a513158
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 (static_cast<time_t>(strtol (value.c_str (), nullptr, 10)));
Datetime d ((time_t)strtol (value.c_str (), nullptr, 10));
if (format.empty())
return d.toString (Context::getContext ().config.get ("dateformat"));