Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for setting source trust level #4216

Merged
merged 26 commits into from
Mar 26, 2024
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
Loading