Skip to content

Commit

Permalink
Merge pull request #4994 from computezrmle/avoid_tolower_conversion
Browse files Browse the repository at this point in the history
Avoid character conversion
  • Loading branch information
AenBleidd authored Nov 3, 2022
2 parents 213028b + 9d74013 commit cb609ad
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions samples/vboxwrapper/vbox_vboxmanage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -605,9 +605,7 @@ namespace vboxmanage {
//

type_line = output;
transform(type_line.cbegin(), type_line.cend(),
type_line.begin(), [](unsigned char c) { return tolower(c); });
type_start = type_line.find("\ntype: ") + 1;
type_start = type_line.find("\nType: ") + 1;
type_end = type_line.find("\n", type_start) - type_start;
type_line = type_line.substr(type_start, type_end);

Expand Down

0 comments on commit cb609ad

Please sign in to comment.