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

@ -387,7 +387,7 @@ bool getDOM (const std::string& name, const Task& task, Variant& value)
{
// annotation_1234567890
// 0 ^11
value = Variant (static_cast<time_t>(strtol (i.first.substr (11).c_str (), NULL, 10)), Variant::type_date);
value = Variant ((time_t) strtol (i.first.substr (11).c_str (), NULL, 10), Variant::type_date);
return true;
}
else if (elements[2] == "description")
@ -646,7 +646,7 @@ std::string DOM::Node::dumpNode (
out << "\033[31m" << node->_name << "\033[0m";
if (node->_provider)
out << " 0x" << std::hex << (long long) reinterpret_cast<void*>(node->_provider);
out << " 0x" << std::hex << (long long) (void*) node->_provider;
out << '\n';