[gtkmm] Remove RecentInfo::operator const void*.



commit c80c265c4334db375ada2201c7b6b5c854eb3981
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Apr 4 11:33:40 2011 +0200

    Remove RecentInfo::operator const void*.
    
    	* gtk/src/recentinfo.[hg|ccg]: Remove operator const void* (previously
    	operator bool), because it is unnecessary because it is used via RefPtr.
    	The declaration was already commented out in the .hg header, but gmmproc
    	still generated the declaration in the .h file.

 ChangeLog              |    9 +++++++++
 gtk/src/recentinfo.ccg |    5 -----
 gtk/src/recentinfo.hg  |   11 +----------
 3 files changed, 10 insertions(+), 15 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c5df583..70e9457 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2011-04-04  Murray Cumming  <murrayc murrayc com>
 
+	Remove RecentInfo::operator const void*.
+
+	* gtk/src/recentinfo.[hg|ccg]: Remove operator const void* (previously
+	operator bool), because it is unnecessary because it is used via RefPtr.
+	The declaration was already commented out in the .hg header, but gmmproc
+	still generated the declaration in the .h file.
+
+2011-04-04  Murray Cumming  <murrayc murrayc com>
+
 	Widget: Remove the extension-event property.
 
 	* gdk/src/event.hg: Remove the now-unused, and maybe already not-generated,
diff --git a/gtk/src/recentinfo.ccg b/gtk/src/recentinfo.ccg
index f725016..62b1fcf 100644
--- a/gtk/src/recentinfo.ccg
+++ b/gtk/src/recentinfo.ccg
@@ -22,11 +22,6 @@
 namespace Gtk
 {
 
-RecentInfo::operator const void*() const
-{
-  return (const void*)(gobj() != 0);
-}
-
 std::vector<Glib::ustring> RecentInfo::get_applications() const
 {
   gsize length = 0;
diff --git a/gtk/src/recentinfo.hg b/gtk/src/recentinfo.hg
index cc37ea1..ba8b480 100644
--- a/gtk/src/recentinfo.hg
+++ b/gtk/src/recentinfo.hg
@@ -35,7 +35,7 @@ void gtk_recent_info_unref(GtkRecentInfo* info);
 namespace Gtk
 {
 
-/** Contains informations found when looking up an entry of the
+/** Contains information found when looking up an entry of the
  * recently used files list.
  *
  * @newin{2,10}
@@ -48,15 +48,6 @@ class RecentInfo
   _IGNORE(gtk_recent_info_ref, gtk_recent_info_unref)
 public:
 
-
-//TODO: Deprecate this? Why? Document the deprecation.
-//#ifndef DOXYGEN_SHOULD_SKIP_THIS
-//# if (!defined(GTKMM_DISABLE_DEPRECATED) || defined(GTKMM_COMPILATION))
-  /// Tests whether the RecentInfo is valid.
-  operator const void*() const;
-//# endif
-//#endif
-
   _WRAP_METHOD(Glib::ustring get_uri() const, gtk_recent_info_get_uri)
   _WRAP_METHOD(Glib::ustring get_display_name() const, gtk_recent_info_get_display_name)
   _WRAP_METHOD(Glib::ustring get_description() const, gtk_recent_info_get_description)



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