mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-06 17:37:21 +02:00
[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:
parent
55d103c491
commit
13e1bf7204
14 changed files with 86 additions and 86 deletions
|
@ -387,7 +387,7 @@ bool getDOM (const std::string& name, const Task& task, Variant& value)
|
|||
{
|
||||
// annotation_1234567890
|
||||
// 0 ^11
|
||||
value = Variant ((time_t) strtol (i.first.substr (11).c_str (), NULL, 10), Variant::type_date);
|
||||
value = Variant (static_cast<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) (void*) node->_provider;
|
||||
out << " 0x" << std::hex << (long long) reinterpret_cast<void*>(node->_provider);
|
||||
|
||||
out << '\n';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue