[yelp/yelp-3-0] [yelp-document] Fixed missing returns when calling virtual functions.



commit acd4ddbe9dde29e4be2f8479d006a5481a2b2fa1
Author: Shaun McCance <shaunm gnome org>
Date:   Tue Oct 20 18:13:45 2009 -0500

    [yelp-document] Fixed missing returns when calling virtual functions.
    
    No idea how this ever managed to work without these.

 libyelp/yelp-document.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libyelp/yelp-document.c b/libyelp/yelp-document.c
index 50e85ac..8190995 100644
--- a/libyelp/yelp-document.c
+++ b/libyelp/yelp-document.c
@@ -571,7 +571,7 @@ yelp_document_read_contents (YelpDocument *document,
     g_return_val_if_fail (YELP_IS_DOCUMENT (document), NULL);
     g_return_val_if_fail (YELP_DOCUMENT_GET_CLASS (document)->read_contents != NULL, NULL);
 
-    YELP_DOCUMENT_GET_CLASS (document)->read_contents (document, page_id);
+    return YELP_DOCUMENT_GET_CLASS (document)->read_contents (document, page_id);
 }
 
 static const gchar *
@@ -640,7 +640,7 @@ yelp_document_get_mime_type (YelpDocument *document,
     g_return_if_fail (YELP_IS_DOCUMENT (document));
     g_return_if_fail (YELP_DOCUMENT_GET_CLASS (document)->get_mime_type != NULL);
 
-    YELP_DOCUMENT_GET_CLASS (document)->get_mime_type (document, page_id);
+    return YELP_DOCUMENT_GET_CLASS (document)->get_mime_type (document, page_id);
 }
 
 static gchar *



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