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

Modernize Humminbird internals #1322

Merged
merged 21 commits into from
Aug 15, 2024
Merged

Modernize Humminbird internals #1322

merged 21 commits into from
Aug 15, 2024

Conversation

robertlipe
Copy link
Collaborator

@robertlipe robertlipe commented Aug 14, 2024

  • Modernize Humminbirds internals

GPSBabelDeveloper and others added 18 commits January 30, 2021 15:58
This reverts commit cfcf7b3.
Apparently .cmake is already there...and the merge of my oneline change made dogmeat out of the file anyway that didn't show with git diff. Man, I hate git.
This survives a
$  XMallocStackLogging=true MallocScribble=true XMallocPreScribble=true XMallocGuardEdges=true  ./testo
on MacOS. ./testo humminbird crash before this.
humminbird.cc Outdated
wpt->shortname = s;
xfree(s);

wpt->shortname = QStringFromRaw(sizeof(w.name), w.name);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Isn't this all we need here? If so can we eliminate QStringFromRaw or replace its contents along these lines?

wpt->shortname = QByteArray(w.name, qstrnlen(w.name, sizeof(w.name)));

You could use QByteArray::fromRawData instead but I suggest saving that copy is noise and prone to misuse (source must continue to exist, result not '\0' terminated).

@GPSBabelDeveloper
Copy link
Collaborator

GPSBabelDeveloper commented Aug 14, 2024 via email

Copy link

codacy-production bot commented Aug 15, 2024

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
-0.03% 76.92%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (4e01786) 27552 17233 62.55%
Head commit (6c6c562) 55109 (+27557) 34455 (+17222) 62.52% (-0.03%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#1322) 26 20 76.92%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more

@robertlipe robertlipe merged commit 824e01d into master Aug 15, 2024
33 checks passed
@robertlipe robertlipe deleted the hum branch August 15, 2024 05:52
@robertlipe robertlipe restored the hum branch August 15, 2024 05:52
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.

3 participants