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

Backport cppcheck error fixes #59091

Merged
merged 30 commits into from
Oct 16, 2024

Conversation

nyalldawson
Copy link
Collaborator

No description provided.

@nyalldawson nyalldawson added Chore GitHub and other CI infrastructure changes Backport Is a backport of another pull request labels Oct 15, 2024
@github-actions github-actions bot added this to the 3.35.0 milestone Oct 15, 2024
@nyalldawson
Copy link
Collaborator Author

Needs #59092 before this will pass again...

@nyalldawson nyalldawson reopened this Oct 15, 2024
(cherry picked from commit 6935c02)
(cherry picked from commit 249b906)
(cherry picked from commit e03072a)
(cherry picked from commit fc82d4c)
(cherry picked from commit 53a19ca)
(cherry picked from commit 3c2ed21)
(cherry picked from commit dcb7823)
(cherry picked from commit 0fd2191)
(cherry picked from commit 5cfcff1)
which correctly sets all members

(cherry picked from commit bec114f)
(cherry picked from commit b9a3e8c)
(cherry picked from commit afb38d8)
Add TODO for someone to validate later

(cherry picked from commit 2251daf)
(cherry picked from commit a8023f8)
nyalldawson and others added 6 commits October 16, 2024 07:34
Indeed `QgsAbstractGeometry::operator=()` is already called. This
operator calls the `clear()` method which already clears the cache and
the existing geometries.

(cherry picked from commit 9fed0f1)
Indeed `QgsCurve::operator=()` is already called. As,
`QgsCurve` does not override `operator=`,
`QgsAbstractGeometry::operator=()` is called. This operator calls the
`clear()` method which already clears the cache and the existing
curves.

(cherry picked from commit 04b1dd7)
Indeed `QgsSurface::operator=()` is already called. As,
`QgsSurface` does not override `operator=`,
`QgsAbstractGeometry::operator=()` is called. This operator calls the
`clear()` method which clears the exterior ring, the interior rings
and the cache.

(cherry picked from commit e450947)
@nyalldawson
Copy link
Collaborator Author

Unrelated clang-tidy failure

@nyalldawson nyalldawson merged commit 423f9d0 into qgis:release-3_34 Oct 16, 2024
28 of 29 checks passed
@nyalldawson nyalldawson deleted the backport_cpp_error branch October 16, 2024 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backport Is a backport of another pull request Chore GitHub and other CI infrastructure changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants