Skip to content

Commit cb609ad

Browse files
authored
Merge pull request #4994 from computezrmle/avoid_tolower_conversion
Avoid character conversion
2 parents 213028b + 9d74013 commit cb609ad

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

samples/vboxwrapper/vbox_vboxmanage.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -605,9 +605,7 @@ namespace vboxmanage {
605605
//
606606

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

0 commit comments

Comments
 (0)