mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Cleanup: make location argument to put_location() const
Since this is an output function, the pointed-to value is not modified. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
9c48130d37
commit
fe7c0b3085
2 changed files with 2 additions and 2 deletions
|
@ -218,7 +218,7 @@ void put_degrees(struct membuffer *b, degrees_t value, const char *pre, const ch
|
|||
put_format(b, "%s%s%u.%06u%s", pre, sign, FRACTION(udeg, 1000000), post);
|
||||
}
|
||||
|
||||
void put_location(struct membuffer *b, location_t *loc, const char *pre, const char *post)
|
||||
void put_location(struct membuffer *b, const location_t *loc, const char *pre, const char *post)
|
||||
{
|
||||
if (has_location(loc)) {
|
||||
put_degrees(b, loc->lat, pre, " ");
|
||||
|
|
|
@ -111,7 +111,7 @@ extern void put_duration(struct membuffer *, duration_t, const char *, const cha
|
|||
extern void put_pressure(struct membuffer *, pressure_t, const char *, const char *);
|
||||
extern void put_salinity(struct membuffer *, int, const char *, const char *);
|
||||
extern void put_degrees(struct membuffer *b, degrees_t value, const char *, const char *);
|
||||
extern void put_location(struct membuffer *b, location_t *, const char *, const char *);
|
||||
extern void put_location(struct membuffer *b, const location_t *, const char *, const char *);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue