Skip to content

Commit

Permalink
Update DEVELOPER-NOTES.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-jts authored Feb 19, 2025
1 parent 0989e2d commit 8781da7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions DEVELOPER-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ public:
### Function Parameter calling conventions
* Objects which are passed as read-only with no transfer of ownership
should be passed as `const` references (`const Geometry&`).
should be passed as `const` [references](https://en.wikipedia.org/wiki/Reference_%28C++%29#) (e.g. `const Geometry&`).
References are simpler and safer to use than pointers.
* in particular, this applies to Geometry objects passed to API operations
(in static functions, class constructors, or initialization methods)
* NOTE: many GEOS API functions use pass-by-pointer (`Geometry*`), but this is historical baggage
Expand Down Expand Up @@ -135,4 +136,4 @@ In **implementation files**, `using` [declarations](https://en.cppreference.com/
```
using geos::algorithm::Distance;
using namespace geos::geom;
```
```

0 comments on commit 8781da7

Please sign in to comment.