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

Find single characters rather than single character strings. #75

Merged
merged 2 commits into from
Nov 21, 2024

Conversation

Dave-Lowndes
Copy link
Contributor

Remove unused variable.

@@ -29,7 +29,6 @@ inline std::istream &getlineEndingIndependent(std::istream &is, std::string &t)
{
t.clear();

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ooooh removing the sentry is not correct. Thats a guard class which sets internal bits

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@baconpaul
OK, so perhaps the fix should be to test the sentry object is valid after construction?
That way it wouldn't be flagged as unused by an analyser.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@baconpaul See what you think of the latest commit.

Minor changes to Tuning::Tuning:
Use actual type rather than auto because modern tools will warn that the auto probably ought to be a reference, but in this case a copy is clearly needed.
Move pitches array closer to usage.
@baconpaul
Copy link
Collaborator

Great!

@baconpaul baconpaul merged commit 8299d5a into surge-synthesizer:main Nov 21, 2024
5 checks passed
@Dave-Lowndes Dave-Lowndes deleted the FindChars branch November 21, 2024 09:49
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