diff options
author | José Alburquerque <jaalburqu@svn.gnome.org> | 2011-10-13 16:20:37 -0400 |
---|---|---|
committer | José Alburquerque <jaalburqu@svn.gnome.org> | 2011-10-13 16:20:37 -0400 |
commit | b5d3599d10f3acf84d23316c5c6ad65964c82e61 (patch) | |
tree | 796e8f442bea62de2b44e1676f0ecfcbdf6a8fee /glib/src/date.ccg | |
parent | 7f7f658edf637f7205fb8bdcac893f5e1477e338 (diff) | |
download | glibmm-b5d3599d10f3acf84d23316c5c6ad65964c82e61.tar.gz |
Date: set_time(): Use g_date_set_time_t() instead of g_date_set_time().
* glib/src/date.ccg: The latter function is deprecated. This fixes
the build with the master branch of glib with deprecations disabled
though there's one small error related to the Threads discussion on
the mailing list that will still have to be looked at.
Diffstat (limited to 'glib/src/date.ccg')
-rw-r--r-- | glib/src/date.ccg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glib/src/date.ccg b/glib/src/date.ccg index 75ff1442..507c7037 100644 --- a/glib/src/date.ccg +++ b/glib/src/date.ccg @@ -87,7 +87,7 @@ _DEPRECATE_IFDEF_START void Date::set_time(GTime time) { //This method, and the C function that it wraps, are deprecated. - g_date_set_time(&gobject_, time); + g_date_set_time_t(&gobject_, static_cast<time_t>(time)); } #endif //GLIBMM_HAVE_C_STD_TIME_T_IS_NOT_INT32 |