Skip to content

Commit

Permalink
FIX: Use std::transform in Lib::createUpperString
Browse files Browse the repository at this point in the history
Use std::transform in Lib::createUpperString
  • Loading branch information
slali87 committed Oct 10, 2024
1 parent 6d6e002 commit 9ece436
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/lib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace lib {
std::string Lib::createUpperString(std::string string) const {
std::for_each(std::begin(string), std::end(string), ::toupper);
std::transform(cbegin(string), cend(string), begin(string), ::toupper);
return string;
}
} // namespace lib

0 comments on commit 9ece436

Please sign in to comment.