[gnome-builder] libide: be assertive
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide: be assertive
- Date: Mon, 23 Mar 2015 23:39:11 +0000 (UTC)
commit fc681f60b978e280d37aaacd7f2e67a90c72a68b
Author: Christian Hergert <christian hergert me>
Date: Tue Feb 24 11:54:19 2015 -0800
libide: be assertive
libide/ide-buffer-manager.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libide/ide-buffer-manager.c b/libide/ide-buffer-manager.c
index c4a32ae..b3c1857 100644
--- a/libide/ide-buffer-manager.c
+++ b/libide/ide-buffer-manager.c
@@ -272,10 +272,10 @@ ide_buffer_manager_auto_save_cb (gpointer data)
AutoSave *state = data;
IdeFile *file;
- g_return_val_if_fail (state, G_SOURCE_REMOVE);
- g_return_val_if_fail (IDE_IS_BUFFER_MANAGER (state->self), G_SOURCE_REMOVE);
- g_return_val_if_fail (IDE_IS_BUFFER (state->buffer), G_SOURCE_REMOVE);
- g_return_val_if_fail (state->source_id > 0, G_SOURCE_REMOVE);
+ g_assert (state);
+ g_assert (IDE_IS_BUFFER_MANAGER (state->self));
+ g_assert (IDE_IS_BUFFER (state->buffer));
+ g_assert (state->source_id > 0);
file = ide_buffer_get_file (state->buffer);
if (file)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]