-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
cppcheck fixes for queued LTR backports branch #59102
cppcheck fixes for queued LTR backports branch #59102
Commits on Oct 16, 2024
-
Avoid some false-positive cppcheck functionConst warnings
(cherry picked from commit 2b3be20)
Configuration menu - View commit details
-
Copy full SHA for dca6509 - Browse repository at this point
Copy the full SHA dca6509View commit details -
Rename private method to sensible name
(cherry picked from commit a7829b7)
Configuration menu - View commit details
-
Copy full SHA for 0bb4c3c - Browse repository at this point
Copy the full SHA 0bb4c3cView commit details -
Remove unused legacy pal class
(cherry picked from commit 6935c02)
Configuration menu - View commit details
-
Copy full SHA for 7688da8 - Browse repository at this point
Copy the full SHA 7688da8View commit details -
Fix cppcheck 'function can be const' warnings
(cherry picked from commit 5c5bbf6)
Configuration menu - View commit details
-
Copy full SHA for 7056565 - Browse repository at this point
Copy the full SHA 7056565View commit details -
Configuration menu - View commit details
-
Copy full SHA for 339c624 - Browse repository at this point
Copy the full SHA 339c624View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9581fac - Browse repository at this point
Copy the full SHA 9581facView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2f20624 - Browse repository at this point
Copy the full SHA 2f20624View commit details -
Avoid some cppcheck false positives
(cherry picked from commit 53a19ca)
Configuration menu - View commit details
-
Copy full SHA for e562b8b - Browse repository at this point
Copy the full SHA e562b8bView commit details -
Fix some (false positive) cppcheck uninitialized variable warnings
(cherry picked from commit b92abc9)
Configuration menu - View commit details
-
Copy full SHA for bc05d70 - Browse repository at this point
Copy the full SHA bc05d70View commit details -
Configuration menu - View commit details
-
Copy full SHA for 20e4b0b - Browse repository at this point
Copy the full SHA 20e4b0bView commit details -
Remove duplicate methods defined in subclasses
(cherry picked from commit ff9eeb8)
Configuration menu - View commit details
-
Copy full SHA for ac887ee - Browse repository at this point
Copy the full SHA ac887eeView commit details -
Remove duplicate inherited members
(cherry picked from commit dcb7823)
Configuration menu - View commit details
-
Copy full SHA for 151e655 - Browse repository at this point
Copy the full SHA 151e655View commit details -
Fix ignored release value warning
(cherry picked from commit 0fd2191)
Configuration menu - View commit details
-
Copy full SHA for 7470ede - Browse repository at this point
Copy the full SHA 7470edeView commit details -
Suppress some duplInheritedMember warnings
(cherry picked from commit 5fc6ceb)
Configuration menu - View commit details
-
Copy full SHA for 3d6b3f6 - Browse repository at this point
Copy the full SHA 3d6b3f6View commit details -
Avoid false-positive cppcheck missingMemberCopy warnings
(cherry picked from commit b200765)
Configuration menu - View commit details
-
Copy full SHA for 6a3e0ab - Browse repository at this point
Copy the full SHA 6a3e0abView commit details -
Configuration menu - View commit details
-
Copy full SHA for 407697a - Browse repository at this point
Copy the full SHA 407697aView commit details -
Remove broken swap methods, replace with standard assignment op
which correctly sets all members (cherry picked from commit bec114f)
Configuration menu - View commit details
-
Copy full SHA for 8ab81c0 - Browse repository at this point
Copy the full SHA 8ab81c0View commit details -
Fix/suppress more duplInheritedMember warnings
(cherry picked from commit 4e6fe9b)
Configuration menu - View commit details
-
Copy full SHA for 2e10110 - Browse repository at this point
Copy the full SHA 2e10110View commit details -
Fix assert with side effects warning
(cherry picked from commit b9a3e8c)
Configuration menu - View commit details
-
Copy full SHA for cc16cc3 - Browse repository at this point
Copy the full SHA cc16cc3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 11482df - Browse repository at this point
Copy the full SHA 11482dfView commit details -
Suppress some possibly valid cppcheck copy member warnings
Add TODO for someone to validate later (cherry picked from commit 2251daf)
Configuration menu - View commit details
-
Copy full SHA for 8466306 - Browse repository at this point
Copy the full SHA 8466306View commit details -
Fix unused return value warning
(cherry picked from commit a8023f8)
Configuration menu - View commit details
-
Copy full SHA for 9766bf8 - Browse repository at this point
Copy the full SHA 9766bf8View commit details -
Suppress more duplInheritedMember warnings
(cherry picked from commit 417f94f)
Configuration menu - View commit details
-
Copy full SHA for d7fd4e8 - Browse repository at this point
Copy the full SHA d7fd4e8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0320519 - Browse repository at this point
Copy the full SHA 0320519View commit details -
Configuration menu - View commit details
-
Copy full SHA for 02d4f0f - Browse repository at this point
Copy the full SHA 02d4f0fView commit details -
qgsgeometrycollection: Remove uneeded clearCache call in operator=
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)
Configuration menu - View commit details
-
Copy full SHA for 02c9cb6 - Browse repository at this point
Copy the full SHA 02c9cb6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2beea60 - Browse repository at this point
Copy the full SHA 2beea60View commit details -
qgscompoundcurve: Remove uneeded clearCache call in operator=
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)
Configuration menu - View commit details
-
Copy full SHA for c1eabbf - Browse repository at this point
Copy the full SHA c1eabbfView commit details -
qgscurvepolygon: Remove uneeded clearCache call in operator=
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)
Configuration menu - View commit details
-
Copy full SHA for a71365c - Browse repository at this point
Copy the full SHA a71365cView commit details -
Remove duplicate equality operator for QgsPointXY
We had two different(!!!!) implementations for equality operator for QgsPointXY, with different logic (one handled empty points, the other didn't). This compiled only because one was not marked as const. So we'd get a DIFFERENT equality check logic depending on whether or not the first point was const... eeek! Remove the duplicate one, mark the better one as const
Configuration menu - View commit details
-
Copy full SHA for b989a6b - Browse repository at this point
Copy the full SHA b989a6bView commit details -
I'm not 100% sure if the point == mSnapMatch.point() comparison was intended be done using QgsPointXY or QgsPoint objects here! Use QgsPointXY to keep the behavior the same from before the duplicate QgsPointXY == operator was removed...
Configuration menu - View commit details
-
Copy full SHA for 6e66a18 - Browse repository at this point
Copy the full SHA 6e66a18View commit details -
Configuration menu - View commit details
-
Copy full SHA for ece8b84 - Browse repository at this point
Copy the full SHA ece8b84View commit details -
Configuration menu - View commit details
-
Copy full SHA for 191b95f - Browse repository at this point
Copy the full SHA 191b95fView commit details -
Configuration menu - View commit details
-
Copy full SHA for eac800a - Browse repository at this point
Copy the full SHA eac800aView commit details