Skip to content

Commit

Permalink
Update transform()
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Sep 8, 2023
1 parent 41f2389 commit bd74ce1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/shared/piscsi_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ string piscsi_util::Banner(string_view app)

string piscsi_util::GetExtensionLowerCase(string_view filename)
{
string ext = path(filename).extension();
ranges::transform(ext, ext.begin(), ::tolower);
string ext;
ranges::transform(path(filename).extension().string(), back_inserter(ext), ::tolower);

// Remove the leading dot
return ext.empty() ? "" : ext.substr(1);
Expand Down

0 comments on commit bd74ce1

Please sign in to comment.