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

dev: Add Strutil::eval_as_bool #4250

Merged
merged 1 commit into from
May 1, 2024

Conversation

lgritz
Copy link
Collaborator

@lgritz lgritz commented Apr 29, 2024

No description provided.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
@@ -1137,7 +1137,7 @@ control_if(Oiiotool& ot, cspan<const char*> argv)
if (ot.running()) {
// string_view command = ot.express(argv[0]);
string_view value = ot.express(argv[1]);
cond = eval_as_bool(value);
cond = Strutil::eval_as_bool(value);
Copy link
Contributor

Choose a reason for hiding this comment

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

There's a few remaining uses of the file-local eval_as_bool along with the old implementation itself. Were there reasons to leave those behind?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There's an unrelated PR coming on the heels of that where they will get fixed, but I couldn't cleanly separate those out of the other changes.

@lgritz lgritz merged commit 559016f into AcademySoftwareFoundation:master May 1, 2024
24 checks passed
@lgritz lgritz deleted the lg-evalbool branch May 4, 2024 15:13
lgritz added a commit to lgritz/OpenImageIO that referenced this pull request May 16, 2024
Signed-off-by: Larry Gritz <lg@larrygritz.com>
lgritz added a commit to lgritz/OpenImageIO that referenced this pull request May 18, 2024
Signed-off-by: Larry Gritz <lg@larrygritz.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants