diff options
author | Robert C. Helling <helling@atdotde.de> | 2015-04-24 14:19:41 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-04-24 09:35:35 -0700 |
commit | a0a3c6ec1507c86d49d7851b54d781321e3d4ef6 (patch) | |
tree | f2729cd60451229ef7f24b1a8a7bba5f29363fd2 /qthelper.cpp | |
parent | c97e136435e61e72800baa6da37f82c5240ac642 (diff) | |
download | subsurface-a0a3c6ec1507c86d49d7851b54d781321e3d4ef6.tar.gz |
Cleaning up variable names in image loading
Use more explicit variabel names and make the get timestamp function actually
return the timestamp rather than getting a pointer argument
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qthelper.cpp')
-rw-r--r-- | qthelper.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/qthelper.cpp b/qthelper.cpp index eb0d5e41a..a5597e3fb 100644 --- a/qthelper.cpp +++ b/qthelper.cpp @@ -354,20 +354,19 @@ picture_load_exit: return; } -extern "C" void picture_get_timestamp(char *filename, timestamp_t *t) +extern "C" timestamp_t picture_get_timestamp(char *filename) { EXIFInfo exif; memblock mem; int retval; if (readfile(filename, &mem) <= 0) - return; + return 0; retval = exif.parseFrom((const unsigned char *)mem.buffer, (unsigned)mem.size); free(mem.buffer); if (retval != PARSE_EXIF_SUCCESS) - return; - *t = exif.epoch(); - return; + return 0; + return exif.epoch(); } extern "C" const char *system_default_directory(void) |