Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/AppInstallerSharedLib/GroupPolicy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,8 @@ namespace AppInstaller::Settings
json["Explicit"] = Explicit;

// Trust level is represented as an array of trust level strings since there can be multiple flags set.
for (int i = 0; i < TrustLevel.size(); ++i)
int trustLevelLength = static_cast<int>(TrustLevel.size());
for (int i = 0; i < trustLevelLength; ++i)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: The better solution is generally to use size_t i.

{
json["TrustLevel"][i] = TrustLevel[i];
}
Expand Down