[glibmm] TimeZone: Const corrections.



commit 088a3a84850ceb1eed06f99d68c051bad45134dc
Author: Josà Alburquerque <jaalburqu svn gnome org>
Date:   Tue Jun 14 22:52:05 2011 -0400

    TimeZone: Const corrections.
    
    	* glib/src/timezone.hg: Correct the constness of the TimeZone for some
    	methods.

 ChangeLog            |    7 +++++++
 glib/src/timezone.hg |   10 +++++-----
 2 files changed, 12 insertions(+), 5 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index f520a9c..1b06145 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-06-14  Josà Alburquerque  <jaalburqu svn gnome org>
 
+	TimeZone: Const corrections.
+
+	* glib/src/timezone.hg: Correct the constness of the TimeZone for some
+	methods.
+
+2011-06-14  Josà Alburquerque  <jaalburqu svn gnome org>
+
 	Increase the Glib requirement to 2.29.8.
 
 	* configure.ac: The requirement was increased in the previous to the
diff --git a/glib/src/timezone.hg b/glib/src/timezone.hg
index 103190d..3d88e88 100644
--- a/glib/src/timezone.hg
+++ b/glib/src/timezone.hg
@@ -64,11 +64,11 @@ public:
 
   _WRAP_METHOD(static void refresh_local(), g_time_zone_refresh_local)
 
-  _WRAP_METHOD(int find_interval(TimeType type, gint64 time), g_time_zone_find_interval)
-  _WRAP_METHOD(int adjust_time(TimeType type, gint64& time), g_time_zone_adjust_time)
-  _WRAP_METHOD(Glib::ustring get_abbreviation(int interval), g_time_zone_get_abbreviation)
-  _WRAP_METHOD(gint32 get_offset(int interval), g_time_zone_get_offset)
-  _WRAP_METHOD(bool is_dst(int interval), g_time_zone_is_dst)
+  _WRAP_METHOD(int find_interval(TimeType type, gint64 time) const, g_time_zone_find_interval)
+  _WRAP_METHOD(int adjust_time(TimeType type, gint64& time) const, g_time_zone_adjust_time)
+  _WRAP_METHOD(Glib::ustring get_abbreviation(int interval) const, g_time_zone_get_abbreviation)
+  _WRAP_METHOD(gint32 get_offset(int interval) const, g_time_zone_get_offset)
+  _WRAP_METHOD(bool is_dst(int interval) const, g_time_zone_is_dst)
 };
 
 } // namespace Glib



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]