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

fix: some LoggedTimer instances lacked a variable name #4571

Merged
merged 2 commits into from
Dec 27, 2024

Conversation

lgritz
Copy link
Collaborator

@lgritz lgritz commented Dec 25, 2024

It was syntactically correct, but without an actual variable, there was no RAII scope and so it destructs immediately, causing the timers to capture 0 time.

Found by Sonar warnings.

This was causing those timers to fail because without an actual
variable, there was no RAII scope.

Found by Sonar warnings.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
Signed-off-by: Larry Gritz <lg@larrygritz.com>
Copy link
Contributor

@jessey-git jessey-git left a comment

Choose a reason for hiding this comment

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

Looks like they're all taken care of now.

@lgritz lgritz merged commit 6b11c95 into AcademySoftwareFoundation:main Dec 27, 2024
29 checks passed
@lgritz lgritz deleted the lg-loggedtimer branch December 27, 2024 22:43
lgritz added a commit to lgritz/OpenImageIO that referenced this pull request Dec 28, 2024
…reFoundation#4571)

It was syntactically correct, but without an actual variable, there was
no RAII scope and so it destructs immediately, causing the timers to
capture 0 time.

Found by Sonar warnings.

---------

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