Revert "[clang-tidy] Replace C style casts with C++ ones"
This reverts commit 13e1bf7204.
This commit is contained in:
@@ -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"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user