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

Make ColorFromXOrgAppColorName both smaller and more correct #16824

Merged
merged 2 commits into from
Mar 8, 2024

Conversation

DHowett
Copy link
Member

@DHowett DHowett commented Mar 5, 2024

We don't need to use stringstream to generate a ten-character string, and we for sure don't need to use the locale-aware ctype functions after we just wrote a comment saying "XOrg colors are always Latin-1"

Size Diff Object Library
-11.8 KB colorTable.obj ConTypes

We don't need to use `stringstream` to generate a ten-character string,
and we for _sure_ don't need to use the locale-aware ctype functions
after we just wrote a comment saying "XOrg colors are always Latin-1"

| Size Diff | Object         | Library  |
| --------- | -------------- | -------- |
| -11.8 KB  | colorTable.obj | ConTypes |
@DHowett DHowett changed the title Make ColorFromXOrgAppColorName both smaller and faster Make ColorFromXOrgAppColorName both smaller and more correct Mar 5, 2024
src/types/colorTable.cpp Show resolved Hide resolved
@DHowett DHowett enabled auto-merge (squash) March 5, 2024 21:34
@lhecker lhecker added the Area-CodeHealth Issues related to code cleanliness, linting, rules, warnings, errors, static analysis, etc. label Mar 6, 2024
@DHowett DHowett merged commit 73fdac6 into main Mar 8, 2024
20 checks passed
@DHowett DHowett deleted the dev/duhowett/colortable branch March 8, 2024 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-CodeHealth Issues related to code cleanliness, linting, rules, warnings, errors, static analysis, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants