summaryrefslogtreecommitdiffstats
path: root/src/Date.cpp
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2009-10-17 23:03:50 +0200
committerGravatar Jonathan Beck2009-10-17 23:03:50 +0200
commitd21c7d4a9c90232bd8f444c0b620f8fe465387d5 (patch)
treec0f50fe4371beb19b39323e84d3790136fda813b /src/Date.cpp
parenta2588b4b19e898d483d5512cf974e1ccda45d5b6 (diff)
downloadlibplist-d21c7d4a9c90232bd8f444c0b620f8fe465387d5.tar.gz
libplist-d21c7d4a9c90232bd8f444c0b620f8fe465387d5.tar.bz2
Fixes for dates.
Diffstat (limited to 'src/Date.cpp')
-rw-r--r--src/Date.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Date.cpp b/src/Date.cpp
index 46ef14e..1aebfab 100644
--- a/src/Date.cpp
+++ b/src/Date.cpp
@@ -68,7 +68,8 @@ timeval Date::GetValue()
int32_t tv_sec = 0;
int32_t tv_usec = 0;
plist_get_date_val(_node, &tv_sec, &tv_usec);
- return {tv_sec, tv_usec};
+ timeval t = {tv_sec, tv_usec};
+ return t;
}
};