[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:
committed by
Paul Beckingham
parent
55d103c491
commit
13e1bf7204
@@ -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"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user