core: convert picture.c to C++

The last C-file in core. Yippie.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-05-04 17:31:04 +02:00 committed by bstoeger
parent 7d3977481a
commit 9065bf8622
6 changed files with 9 additions and 10 deletions

View file

@ -13,11 +13,10 @@ extern "C" {
struct dive;
struct picture {
char *filename;
offset_t offset;
location_t location;
char *filename = nullptr;
offset_t offset = { 0 };
location_t location = { { 0 }, { 0 } };
};
static const struct picture empty_picture = { NULL, { 0 }, { { 0 }, { 0 } } };
/* loop through all pictures of a dive */
#define FOR_EACH_PICTURE(_dive) \