Target.hpp: Don't use to_string in the Target::forName function

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
Username404 2022-05-07 08:51:15 +02:00
parent b7a22e0e51
commit 6e35682911
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ unique_ptr<Target> Target::forName(string_view name, const bool newLines = true)
#undef make_task
#undef make_task_base_R
#undef make_task_base
Yerbacon::fail({"\"", to_string(toupper(name.at(1))).data(), name.substr(2).data(), "\" is not a valid target."});
Yerbacon::fail({"\"", string(1, (char) toupper(name.at(1))).data(), name.substr(2).data(), "\" is not a valid target."});
return nullptr;
}