mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
7d3977481a
commit
9065bf8622
6 changed files with 9 additions and 10 deletions
|
|
@ -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) \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue