Skip to content

Commit

Permalink
use const auto& instead of auto
Browse files Browse the repository at this point in the history
  • Loading branch information
pit-ray committed Jul 6, 2024
1 parent d920af1 commit 865d06d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/winwrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ namespace vind
L"DisplayVersion",
L"ReleaseId"
} ;
for (auto version_key : version_keys) {
for (const auto& version_key : version_keys) {
DWORD size ;
if(ERROR_SUCCESS != RegGetValueW(
HKEY_LOCAL_MACHINE, subkey, version_key.c_str(),
Expand Down

0 comments on commit 865d06d

Please sign in to comment.