mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: move get_dive_location()/_country() to struct dive
Feels natural in a C++ code base. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
f1f082d86a
commit
76d672210d
9 changed files with 18 additions and 21 deletions
|
@ -345,7 +345,7 @@ static void write_one_dive(struct membuffer *b, const struct dive &dive, const c
|
|||
put_format(b, "\"subsurface_number\":%d,", dive.number);
|
||||
put_HTML_date(b, dive, "\"date\":\"", "\",");
|
||||
put_HTML_time(b, dive, "\"time\":\"", "\",");
|
||||
write_attribute(b, "location", get_dive_location(&dive).c_str(), ", ");
|
||||
write_attribute(b, "location", dive.get_location().c_str(), ", ");
|
||||
put_HTML_coordinates(b, dive);
|
||||
put_format(b, "\"rating\":%d,", dive.rating);
|
||||
put_format(b, "\"visibility\":%d,", dive.visibility);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue