[epiphany] snapshot-service: Stop using const time_t



commit 0cbd04fda4c13c4fdb0241c9f067ddc5f3aa7386
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Sun Apr 24 20:53:12 2016 -0500

    snapshot-service: Stop using const time_t
    
    We don't use const in C except for strings. And certainly not for
    pass-by-value.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=765863

 lib/ephy-snapshot-service.c |    8 ++++----
 lib/ephy-snapshot-service.h |    8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/lib/ephy-snapshot-service.c b/lib/ephy-snapshot-service.c
index df9ddcc..fd551b4 100644
--- a/lib/ephy-snapshot-service.c
+++ b/lib/ephy-snapshot-service.c
@@ -520,7 +520,7 @@ get_snapshot_for_url_thread (GTask                   *task,
 void
 ephy_snapshot_service_get_snapshot_for_url_async (EphySnapshotService *service,
                                                   const char          *url,
-                                                  const time_t         mtime,
+                                                  time_t               mtime,
                                                   GCancellable        *cancellable,
                                                   GAsyncReadyCallback  callback,
                                                   gpointer             user_data)
@@ -634,7 +634,7 @@ ensure_snapshot_freshness_for_web_view (EphySnapshotService *service,
 void
 ephy_snapshot_service_get_snapshot_async (EphySnapshotService *service,
                                           WebKitWebView       *web_view,
-                                          const time_t         mtime,
+                                          time_t               mtime,
                                           GCancellable        *cancellable,
                                           GAsyncReadyCallback  callback,
                                           gpointer             user_data)
@@ -837,7 +837,7 @@ get_snapshot_path_for_url_thread (GTask                   *task,
 void
 ephy_snapshot_service_get_snapshot_path_for_url_async (EphySnapshotService *service,
                                                        const char          *url,
-                                                       const time_t         mtime,
+                                                       time_t               mtime,
                                                        GCancellable        *cancellable,
                                                        GAsyncReadyCallback  callback,
                                                        gpointer             user_data)
@@ -894,7 +894,7 @@ got_snapshot_path_for_url (EphySnapshotService *service,
 void
 ephy_snapshot_service_get_snapshot_path_async (EphySnapshotService *service,
                                                WebKitWebView       *web_view,
-                                               const time_t         mtime,
+                                               time_t               mtime,
                                                GCancellable        *cancellable,
                                                GAsyncReadyCallback  callback,
                                                gpointer             user_data)
diff --git a/lib/ephy-snapshot-service.h b/lib/ephy-snapshot-service.h
index e454e21..1217427 100644
--- a/lib/ephy-snapshot-service.h
+++ b/lib/ephy-snapshot-service.h
@@ -48,7 +48,7 @@ EphySnapshotService *ephy_snapshot_service_get_default                 (void);
 
 void                 ephy_snapshot_service_get_snapshot_for_url_async  (EphySnapshotService *service,
                                                                         const char *url,
-                                                                        const time_t mtime,
+                                                                        time_t mtime,
                                                                         GCancellable *cancellable,
                                                                         GAsyncReadyCallback callback,
                                                                         gpointer user_data);
@@ -60,7 +60,7 @@ GdkPixbuf           *ephy_snapshot_service_get_snapshot_for_url_finish (EphySnap
 
 void                 ephy_snapshot_service_get_snapshot_async          (EphySnapshotService *service,
                                                                         WebKitWebView *web_view,
-                                                                        const time_t mtime,
+                                                                        time_t mtime,
                                                                         GCancellable *cancellable,
                                                                         GAsyncReadyCallback callback,
                                                                         gpointer user_data);
@@ -87,7 +87,7 @@ const char          *ephy_snapshot_service_lookup_snapshot_path        (EphySnap
 
 void             ephy_snapshot_service_get_snapshot_path_for_url_async (EphySnapshotService *service,
                                                                         const char *url,
-                                                                        const time_t mtime,
+                                                                        time_t mtime,
                                                                         GCancellable *cancellable,
                                                                         GAsyncReadyCallback callback,
                                                                         gpointer user_data);
@@ -96,7 +96,7 @@ char           *ephy_snapshot_service_get_snapshot_path_for_url_finish (EphySnap
                                                                         GError **error);
 void           ephy_snapshot_service_get_snapshot_path_async           (EphySnapshotService *service,
                                                                         WebKitWebView *web_view,
-                                                                        const time_t mtime,
+                                                                        time_t mtime,
                                                                         GCancellable *cancellable,
                                                                         GAsyncReadyCallback callback,
                                                                         gpointer user_data);


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